tlx
core.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 TLX_LOGC(cond)
 Explicitly specify the condition for logging. More...
 
#define TLX_LOG
 Default logging method: output if the local debug variable is true. More...
 
#define TLX_LOG0
 Override default output: never or always output log. More...
 
#define TLX_LOG1
 
#define TLX_sLOGC(cond)
 Explicitly specify the condition for logging. More...
 
#define TLX_sLOG
 Default logging method: output if the local debug variable is true. More...
 
#define TLX_sLOG0
 Override default output: never or always output log. More...
 
#define TLX_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...
 
LoggerOutputHook * set_logger_to_stderr ()
 install default logger to cerr / stderr instead of stdout. More...
 

Macro Definition Documentation

#define TLX_LOG

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

Definition at line 141 of file core.hpp.

#define TLX_LOG0

Override default output: never or always output log.

Definition at line 144 of file core.hpp.

#define TLX_LOG1

Definition at line 145 of file core.hpp.

#define TLX_LOGC (   cond)

Explicitly specify the condition for logging.

Definition at line 137 of file core.hpp.

#define TLX_sLOG

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

Definition at line 152 of file core.hpp.

#define TLX_sLOG0

Override default output: never or always output log.

Definition at line 155 of file core.hpp.

#define TLX_sLOG1

Definition at line 156 of file core.hpp.

#define TLX_sLOGC (   cond)

Explicitly specify the condition for logging.

Definition at line 148 of file core.hpp.