Collaboration diagram for MXALogger:
Public Member Functions | |
MXA_SHARED_POINTERS (MXALogger) | |
virtual | ~MXALogger () |
Static Public Member Functions | |
static MXALogger::Pointer | instance () |
Public Attributes | |
MXALogger_Implementation | mxaLogger |
Private Member Functions | |
MXALogger () |
To use this class you should use the macros provided in this class header. To get an instance of the global logger use the folling in your code: MXALOGGER_METHOD_VARIABLE_INSTANCE
Then to use to the logger it can be syntactically the same as 'stdcout <<' style by using the 'mxa_log' macro definition. mxa_log << "My debugging statement " << errorCode << std::endl;
If you want your class to have an class wide instance variable to the global logger then you can use the following macros: In your class declaration use 'MXALOGGER_CLASS_VARIABLE_DECLARATION' macro. In the code within the class method definitions use the 'mxa_log' macro. Do NOT forget to 'mxa_log.open(filename)' using the path/name to a log file otherwise the logging output will simply be sent to 'stdcout'.
MXALogger::~MXALogger | ( | ) | [virtual] |
MXALogger::MXALogger | ( | ) | [private] |
MXALogger::MXA_SHARED_POINTERS | ( | MXALogger | ) |
MXALogger::Pointer MXALogger::instance | ( | ) | [static] |