ODIN
|
#include <tjlog.h>
Public Member Functions | |
Log (const char *objectLabel, const char *functionName, logPriority level=verboseDebug) | |
Log (const Labeled *labeledObject, const char *functionName, logPriority level=verboseDebug) | |
~Log () | |
Additional Inherited Members | |
Static Public Member Functions inherited from LogBase | |
static void | set_log_level (const char *compname, logPriority level) |
static void | set_uniform_log_level (logPriority level) |
static bool | set_log_levels (int argc, char *argv[], bool trigger_error=true) |
static STD_string | get_usage () |
static const char * | get_levels () |
static void | set_levels (const char *str) |
static void | set_log_output_function (tracefunction func) |
Logging class to store logging information of the current scope (object, function, ...). The template parameter specifies the component in which logging is placed, e.g. Log<Seq> for tracing sequence code.
Log< C >::Log | ( | const char * | objectLabel, |
const char * | functionName, | ||
logPriority | level = verboseDebug |
||
) |
Constructs a logging stream for object 'objectLabel' and function 'functionName'. Both strings will precede the actual message in the log. The third argument specifies a uniform logging priority for the constructor and destructor. This constructor will automatically generate a START tag in the log for the function it is used in.
Definition at line 26 of file tjlog_code.h.
Log< C >::Log | ( | const Labeled * | labeledObject, |
const char * | functionName, | ||
logPriority | level = verboseDebug |
||
) |
Constructs a logging stream for labeled object 'labeledObject' and function 'functionName'. Both the label and the function name will precede the actual message in the log. The third argument specifies a uniform logging priority for the constructor and destructor. This constructor will automatically generate a START tag in the log for the function it is used in.
Definition at line 34 of file tjlog_code.h.
This destructor will automatically generate an END tag in the log for the function its object is used in.
Definition at line 42 of file tjlog_code.h.