Belle II Software light-2406-ragdoll
|
#include <LogMethod.h>
Public Member Functions | |
LogMethod (const char *package, std::string function, std::string file, unsigned int line) | |
The LogMethod constructor. | |
~LogMethod () | |
The LogMethod destructor. | |
Private Attributes | |
const char * | m_package |
The package name where the message was sent from. | |
std::string | m_function |
The function name where the message was sent from. | |
std::string | m_file |
The file name where the message was sent from. | |
unsigned int | m_line |
The line number in the source code where the message was sent from. | |
The LogMethod class.
This class allows the logging of the entering and leaving point of a method. Therefore an object of this class is created on the stack, which logs a message at the moment it is created and destroyed. In addition, it logs a message if there are any uncaught exceptions pending at the time the object is destroyed on the stack. This allows to identify methods which were terminated due to a thrown exception.
Definition at line 31 of file LogMethod.h.
LogMethod | ( | const char * | package, |
std::string | function, | ||
std::string | file, | ||
unsigned int | line | ||
) |
The LogMethod constructor.
package | The package name where the message was sent from. |
function | The function name where the message was sent from. |
file | The file name where the message was sent from. |
line | The line number in the source code where the message was sent from. |
Definition at line 19 of file LogMethod.cc.
~LogMethod | ( | ) |
The LogMethod destructor.
Definition at line 29 of file LogMethod.cc.
|
private |
The file name where the message was sent from.
Definition at line 55 of file LogMethod.h.
|
private |
The function name where the message was sent from.
Definition at line 54 of file LogMethod.h.
|
private |
The line number in the source code where the message was sent from.
Definition at line 56 of file LogMethod.h.
|
private |
The package name where the message was sent from.
Definition at line 53 of file LogMethod.h.