Classes | Enumerations | Functions

keyvalue::logger Namespace Reference

All logger functionalities are inside this namespace. More...

Classes

class  ConsoleLogger
 Implements a console Logger. More...
class  FileLogger
 Implements a file Logger. More...
class  Logger
 Protocol class which defines the interface for all types of logger. More...
class  LoggerImpl
 Abstract class which implements main methods of concrete Loggers. More...
class  AddPrefix
 Defines a policy for Message prefixes, which is, to send the prefix to the underlying Logger's device. More...
class  ForwardToGlobalLogger
 Defines a policy to apply when the Logger fails to process a Message, namely, forward it to GlobalLogger. More...
class  IgnoreColor
 Defines a policy for Message colors, which is, to ignore them. More...
class  IgnoreFailure
 Defines a policy to apply when the logger fails, which is, to ignore the failure. More...
class  IgnorePrefix
 Defines a policy for Message prefixes, which is, to ignore them. More...
class  XtermColor
 Defines a policy for Message color, which is, to set the underlying device of the Logger to print in Message's color. More...
class  WindowsConsole
 This class implements a Windows console Logger. More...
class  XtermConsole
 Implements an xterm console Logger. More...

Enumerations

enum  Color {
  black = 0, red, green, yellow,
  blue, pink, cyan, white,
  grey, bold_red, bold_green, bold_yellow,
  bold_blue, bold_pink, bold_cyan, bold_white
}
 

Console colors.

More...

Functions

void resetGlobal ()
 Resets util::Global<Logger> to its default (StdLogger).

Detailed Description

All logger functionalities are inside this namespace.


Enumeration Type Documentation

enum Color

Console colors.


Function Documentation

void keyvalue::logger::resetGlobal (  ) 

Resets util::Global<Logger> to its default (StdLogger).

WARNING: If this function is called by *utilGlobal<Logger>, the caller may cease to exist immediately (it suicides). In this case the caller can no longer access any of its non static members.