tlx
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
logger.hpp File Reference
#include <sstream>
#include <string>
#include <utility>
#include <vector>

Go to the source code of this file.

Classes

class  LoggerFormatter< AnyType, Enable >
 template class for formatting. contains a print() method. More...
 
class  Logger
 LOG and sLOG for development and debugging. More...
 
class  SpacingLogger
 A logging class which outputs spaces between elements pushed via operator<<. More...
 
class  LoggerVoidify
 
class  LoggerPrefixHook
 Abstract class to implement prefix output hooks for logging. More...
 
class  LoggerOutputHook
 Abstract class to implement output hooks for logging. More...
 
class  LoggerCollectOutput
 Class to hook logger output in the local thread. More...
 
class  LoggerFormatter< AnyType >
 
class  LoggerFormatter< std::pair< A, B > >
 
class  LoggerFormatter< std::vector< T, A > >
 

Namespaces

 tlx
 

Macros

#define LOGC(cond)
 Explicitly specify the condition for logging. More...
 
#define LOG
 Default logging method: output if the local debug variable is true. More...
 
#define LOG0
 Override default output: never or always output log. More...
 
#define LOG1
 
#define sLOGC(cond)
 Explicitly specify the condition for logging. More...
 
#define sLOG
 Default logging method: output if the local debug variable is true. More...
 
#define sLOG0
 Override default output: never or always output log. More...
 
#define sLOG1
 

Functions

LoggerPrefixHook * set_logger_prefix_hook (LoggerPrefixHook *hook)
 Set new LoggerPrefixHook instance to prefix global log lines. More...
 
LoggerOutputHook * set_logger_output_hook (LoggerOutputHook *hook)
 Set new LoggerOutputHook instance to receive global log lines. More...
 

Macro Definition Documentation

#define LOG

Default logging method: output if the local debug variable is true.

Definition at line 141 of file logger.hpp.

#define LOG0

Override default output: never or always output log.

Definition at line 144 of file logger.hpp.

#define LOG1

Definition at line 145 of file logger.hpp.

#define LOGC (   cond)

Explicitly specify the condition for logging.

Definition at line 137 of file logger.hpp.

#define sLOG

Default logging method: output if the local debug variable is true.

Definition at line 152 of file logger.hpp.

#define sLOG0

Override default output: never or always output log.

Definition at line 155 of file logger.hpp.

#define sLOG1

Definition at line 156 of file logger.hpp.

#define sLOGC (   cond)

Explicitly specify the condition for logging.

Definition at line 148 of file logger.hpp.