senf::log Namespace Reference

Namespaces

 detail
 

Classes

class  AreaRegistry
 Area registry. More...
 
class  ConsoleTarget
 Write log messages to std::cout. More...
 
struct  CRITICAL
 Log level CRITICAL. More...
 
struct  DISABLED
 Disable logging. More...
 
struct  Enabled
 Check, if logging is enabled for stream/area/level tuple. More...
 
struct  FATAL
 Log level FATAL. More...
 
class  FileTarget
 Log target writing to a log file. More...
 
struct  IMPORTANT
 Log level IMPORTANT. More...
 
class  IOStreamTarget
 Write log messages to arbitrary std::ostream. More...
 
struct  MESSAGE
 Log level MESSAGE. More...
 
struct  NONE
 Inherit log level. More...
 
struct  NOTICE
 Log level NOTICE. 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...
 
struct  SystemTimeSource
 Default log message time source. More...
 
class  Target
 Logging target base class. More...
 
struct  TimeSource
 Log message time source abstract base class. More...
 
struct  VERBOSE
 Log level VERBOSE. 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::unique_ptr< TimeSource > source)
 Change log message time source. More...
 
template<class Source >
void timeSource ()
 Change log message time source. More...
 

Defining logger objects

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

Typedef Documentation

◆ time_type

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

Definition at line 31 of file TimeSource.hh.

Function Documentation

◆ SENF_CONSOLE_REGISTER_ENUM_MEMBER() [1/3]

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

◆ SENF_CONSOLE_REGISTER_ENUM_MEMBER() [2/3]

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)   
)

◆ SENF_CONSOLE_REGISTER_ENUM_MEMBER() [3/3]

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)   
)