Log Class Reference
[Logger]

Application logger. More...

#include <log.hh>

List of all members.

Public Member Functions

 Log (int verbose_level=1, const char *suffix=NULL)
void setVerboseLevel (int level)
 Enable the specified level of verbosity.
void setVerboseMask (int mask)
 Directly change the verbosity mask.
void setModuleSuffix (const char *name)
 Set a string to display right after module name, into the braces.
void setPrintLoc (bool enable=true)
 Print line number and file name to easily find the LOG macro.
void setUseColor (bool enable=true)
 Enable or disable color (by default use them).
std::ostream & getStream ()
 Used internally.

Static Public Member Functions

static LoggetInst ()
 Used internally.

Public Attributes

int verbose_mask_
bool print_loc_
bool use_color_
char modsuffix_ [64]

Static Public Attributes

static pthread_mutex_t lock_


Detailed Description

Application logger.

Author:
victor
Date:
21/01/2006


Member Function Documentation

void Log::setModuleSuffix ( const char *  name  ) 

Set a string to display right after module name, into the braces.

Parameters:
name Set it to NULL if you don't want a suffix.

void Log::setVerboseLevel ( int  level  ) 

Enable the specified level of verbosity.

Parameters:
level Activate all levels from 0 up to level (0-31).

void Log::setVerboseMask ( int  mask  ) 

Directly change the verbosity mask.

Parameters:
mask The mask to apply (eg: 0x06 activate level 1 and 2, but not level 0).
Note:
This function is mostly useless, only using setVerboseLevel is fine.


The documentation for this class was generated from the following files:
Generated on Sat Jun 23 16:11:00 2007 for Stechec/TBT by  doxygen 1.4.7