senf::log Namespace Reference


Namespaces

namespace   detail

Classes

class   AreaRegistry
  Area registry. More...
struct   Enabled
  Check, if logging is enabled for stream/area/level tuple. More...
class   ConsoleTarget
  Write log messages to std::cout. More...
class   FileTarget
  Log target writing to a log file. More...
class   IOStreamTarget
  Write log messages to arbitrary std::ostream. More...
struct   VERBOSE
  Log level VERBOSE. More...
struct   NOTICE
  Log level NOTICE. More...
struct   MESSAGE
  Log level MESSAGE. More...
struct   IMPORTANT
  Log level IMPORTANT. More...
struct   CRITICAL
  Log level CRITICAL. More...
struct   FATAL
  Log level FATAL. More...
struct   DISABLED
  Disable logging. More...
struct   NONE
  Inherit log level. More...
class   StreamRegistry
  Stream registry. More...
class   StringTarget
  Store log messages in a string buffer. More...
class   SyslogTarget
  Log target writing to the syslog. More...
class   SyslogUDPTarget
  Log target writing UDP syslog packets. More...
class   Target
  Logging target base class. More...
struct   TimeSource
  Log message time source abstract base class. More...
struct   SystemTimeSource
  Default log message time source. More...

Typedefs

typedef config::time_type  time_type

Functions

  SENF_CONSOLE_REGISTER_ENUM_MEMBER (SyslogTarget, LogFacility,(AUTHPRIV)(CRON)(DAEMON)(FTP)(KERN)(LPR)(MAIL)(NEWS)(SYSLOG)(USER)(UUCP)(LOCAL0)(LOCAL1)(LOCAL2)(LOCAL3)(LOCAL4)(LOCAL5)(LOCAL6)(LOCAL7))
  SENF_CONSOLE_REGISTER_ENUM_MEMBER (SyslogUDPTarget, LogFacility,(AUTHPRIV)(CRON)(DAEMON)(FTP)(KERN)(LPR)(MAIL)(NEWS)(SYSLOG)(USER)(UUCP)(LOCAL0)(LOCAL1)(LOCAL2)(LOCAL3)(LOCAL4)(LOCAL5)(LOCAL6)(LOCAL7))
  SENF_CONSOLE_REGISTER_ENUM_MEMBER (Target, action_t,(ACCEPT)(REJECT))
void  timeSource (std::auto_ptr< TimeSource > source)
  Change log message time source.
template<class Source >
void  timeSource ()
  Change log message time source.

Defining logger objects

  SENF_LOG_DEFINE_STREAM (Debug, MESSAGE, MESSAGE, NOTICE)
  Default global log stream.
  SENF_LOG_DEFINE_AREA (DefaultArea)
  Default global log area.

Typedef Documentation

typedef config::time_type senf::log::
time_type

Definition at line 40 of file TimeSource.hh.


Function Documentation

senf::log::
SENF_CONSOLE_REGISTER_ENUM_MEMBER ( Target  ,
action_t  ,
(ACCEPT)(REJECT)  )

senf::log::
SENF_CONSOLE_REGISTER_ENUM_MEMBER ( SyslogUDPTarget  ,
LogFacility  ,
(AUTHPRIV)(CRON)(DAEMON)(FTP)(KERN)(LPR)(MAIL)(NEWS)(SYSLOG)(USER)(UUCP)(LOCAL0)(LOCAL1)(LOCAL2)(LOCAL3)(LOCAL4)(LOCAL5)(LOCAL6)(LOCAL7)  )

senf::log::
SENF_CONSOLE_REGISTER_ENUM_MEMBER ( SyslogTarget  ,
LogFacility  ,
(AUTHPRIV)(CRON)(DAEMON)(FTP)(KERN)(LPR)(MAIL)(NEWS)(SYSLOG)(USER)(UUCP)(LOCAL0)(LOCAL1)(LOCAL2)(LOCAL3)(LOCAL4)(LOCAL5)(LOCAL6)(LOCAL7)  )