Used to log information or events in some logging category. More...
Public Member Functions | |
PvLogger (const PvString &aCategory) | |
Constructor. More... | |
virtual | ~PvLogger () |
Destructor. | |
void | LogInfo (const char *aFile, int aLine, const char *aFunction, const char *aMessage) |
Add an info-level event to the log. More... | |
void | LogError (const char *aFile, int aLine, const char *aFunction, const char *aMessage) |
Add an error-level event to the log. More... | |
void | LogWarning (const char *aFile, int aLine, const char *aFunction, const char *aMessage) |
Add a warning-level event to the log. More... | |
void | LogCritical (const char *aFile, int aLine, const char *aFunction, const char *aMessage) |
Add a critical-level event to the log. More... | |
void | LogDebug (const char *aFile, int aLine, const char *aFunction, const char *aMessage) |
Add a debug-level event to the log. More... | |
Used to log information or events in some logging category.
Logging can be performed using the Log methods of this class but is usually performed using the PV_LOGINFO, PV_LOGERROR, PV_LOGWARNING, PV_LOGCRITICAL and PV_LOGDEBUG macros..
When using these macros, the first message parameter has to be a string. Other parameters are specific as a stream which can be strings, integers, floats and format objects of the PvFormat namespace.
PvLogger::PvLogger | ( | const PvString & | aCategory | ) |
Constructor.
[in] | aCategory | The logging category. |
void PvLogger::LogCritical | ( | const char * | aFile, |
int | aLine, | ||
const char * | aFunction, | ||
const char * | aMessage | ||
) |
Add a critical-level event to the log.
[in] | aFile | File from which logging occured (usually FILE) |
[in] | aLine | Line from which logging occured (usually LINE) |
[in] | aFunction | Function from which logging occured (usually FUNCTION) |
[in] | aMessage | Log message |
void PvLogger::LogDebug | ( | const char * | aFile, |
int | aLine, | ||
const char * | aFunction, | ||
const char * | aMessage | ||
) |
Add a debug-level event to the log.
[in] | aFile | File from which logging occured (usually FILE) |
[in] | aLine | Line from which logging occured (usually LINE) |
[in] | aFunction | Function from which logging occured (usually FUNCTION) |
[in] | aMessage | Log message |
void PvLogger::LogError | ( | const char * | aFile, |
int | aLine, | ||
const char * | aFunction, | ||
const char * | aMessage | ||
) |
Add an error-level event to the log.
[in] | aFile | File from which logging occured (usually FILE) |
[in] | aLine | Line from which logging occured (usually LINE) |
[in] | aFunction | Function from which logging occured (usually FUNCTION) |
[in] | aMessage | Log message |
void PvLogger::LogInfo | ( | const char * | aFile, |
int | aLine, | ||
const char * | aFunction, | ||
const char * | aMessage | ||
) |
Add an info-level event to the log.
[in] | aFile | File from which logging occured (usually FILE) |
[in] | aLine | Line from which logging occured (usually LINE) |
[in] | aFunction | Function from which logging occured (usually FUNCTION) |
[in] | aMessage | Log message |
void PvLogger::LogWarning | ( | const char * | aFile, |
int | aLine, | ||
const char * | aFunction, | ||
const char * | aMessage | ||
) |
Add a warning-level event to the log.
[in] | aFile | File from which logging occured (usually FILE) |
[in] | aLine | Line from which logging occured (usually LINE) |
[in] | aFunction | Function from which logging occured (usually FUNCTION) |
[in] | aMessage | Log message |
Copyright (c) 2002-2018 Pleora Technologies Inc.
www.pleora.com