Phoenix
Object-oriented orthogonally persistent operating system
|
Centralized system logging definitions. More...
Go to the source code of this file.
Classes | |
class | log::SysLogBase |
Global system log. More... | |
class | log::KSysLog |
Kernel implementation for system log. More... | |
Namespaces | |
namespace | log |
Contains definitions related to centralized system logging. | |
Defines | |
#define | TRACE(msg,...) TRACE_FMT("[TRACE] %s:%d <%s>: " msg "\n", __FILE__, __LINE__, __func__, ## __VA_ARGS__) |
Macro for printing debug messages into debug console. | |
#define | LOG (*log::sysLog) |
Global system log object. | |
#define | LL(level) __CONCAT(log::SysLogBase::LOG_, level) |
Macro for short reference to system log levels. | |
Typedefs | |
typedef KSysLog | log::SysLog |
Global system log class. | |
Functions | |
void | log::InitLog () |
Initialize logging functionality. |
Centralized system logging definitions.
#define LL | ( | level | ) | __CONCAT(log::SysLogBase::LOG_, level) |
Macro for short reference to system log levels.
Usage example:
sysLog << LL(WARNING) << "Some warning message";
#define LOG (*log::sysLog) |
Global system log object.
It should be defined in each component. It has text_stream::OTextStream interface so it can be used as in this example:
#define TRACE | ( | msg, | |
... | |||
) | TRACE_FMT("[TRACE] %s:%d <%s>: " msg "\n", __FILE__, __LINE__, __func__, ## __VA_ARGS__) |
Macro for printing debug messages into debug console.
Has no effect in production build.
msg | Message to output. |