Log< C > Class Template Reference
[Classes for basic data types and vectors/arrays (tjutils library)]

#include <tjlog.h>

Inheritance diagram for Log< C >:

Inheritance graph
[legend]
Collaboration diagram for Log< C >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Log (const char *objectLabel, const char *functionName, logPriority level=verboseDebug)
 Log (const Labeled *labeledObject, const char *functionName, logPriority level=verboseDebug)
 ~Log ()

Static Public Member Functions

static logPriority set_log_level (logPriority level)
static logPriority get_log_level ()

Detailed Description

template<class C>
class Log< C >

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.

Definition at line 218 of file tjlog.h.


Constructor & Destructor Documentation

template<class C>
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.

template<class C>
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.

template<class C>
Log< C >::~Log (  ) 

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.


The documentation for this class was generated from the following files:
Generated on Sat Jun 14 12:31:44 2008 by  doxygen 1.5.1