Main class for events log
Public Methods
-
Logger()
-
Logger(const char* fname, bool dup_to_stderr=false) throw(IOException)
-
~Logger()
-
void setOutputFile(const char* fname) throw(IOException)
-
void setCallback(LogEventType evTag, void (*callback)(const char* msg))
-
void setDuppedToStderr(bool x)
- set property: dup output to standart error stream for all streams
-
void setSyslogOutput(bool x)
- set output to syslog: if true we log to syslog, if false - no.
-
void put_event(LogEventType evTag, const char* value, bool dup_to_stderr = false)
-
DebugLogStream& debugs()
-
const DebugLogStream& debugs() const
-
InfoLogStream& infos()
-
const InfoLogStream& infos() const
-
WarningLogStream& warnings()
-
const WarningLogStream& warnings() const
-
ErrorLogStream& errors()
-
const ErrorLogStream& errors() const
-
FatalLogStream& fatals()
-
const FatalLogStream& fatals() const
-
static const char* getStringEventType(LogEventType ev)
Public Members
-
struct IOException
- Struct, which indicate input/output exception
-
typedef LogStreamLocker<DebugLogEventStruct,LOG_DEBUG_ENABLE> DebugLocker
- type for Debug LogStream lock guard
-
typedef LogStreamLocker<InfoLogEventStruct, LOG_INFO_ENABLE> InfoLocker
- type for Info LogStream lock guard
-
typedef LogStreamLocker<WarningLogEventStruct,LOG_WARNING_ENABLE> WarningLocker
- type for Warnings LogStream lock guard
-
typedef LogStreamLocker<ErrorLogEventStruct,LOG_ERROR_ENABLE> ErrorLocker
- type for Errors LogStream lock guard
-
typedef LogStreamLocker<FatalLogEventStruct,LOG_FATAL_ENABLE> FatalLocker
- type for Fatals LogStream lock guard
Documentation
Main class for events log
struct IOException
-
Struct, which indicate input/output exception
const char* what() const
Logger()
Logger(const char* fname, bool dup_to_stderr=false) throw(IOException)
~Logger()
void setOutputFile(const char* fname) throw(IOException)
void setCallback(LogEventType evTag, void (*callback)(const char* msg))
void setDuppedToStderr(bool x)
-
set property: dup output to standart error stream for all streams
void setSyslogOutput(bool x)
-
set output to syslog: if true we log to syslog, if false - no.
by default, output to syslog is enabled.
void put_event(LogEventType evTag, const char* value, bool dup_to_stderr = false)
DebugLogStream& debugs()
const DebugLogStream& debugs() const
InfoLogStream& infos()
const InfoLogStream& infos() const
WarningLogStream& warnings()
const WarningLogStream& warnings() const
ErrorLogStream& errors()
const ErrorLogStream& errors() const
FatalLogStream& fatals()
const FatalLogStream& fatals() const
static const char* getStringEventType(LogEventType ev)
typedef LogStreamLocker<DebugLogEventStruct,LOG_DEBUG_ENABLE> DebugLocker
-
type for Debug LogStream lock guard
typedef LogStreamLocker<InfoLogEventStruct, LOG_INFO_ENABLE> InfoLocker
-
type for Info LogStream lock guard
typedef LogStreamLocker<WarningLogEventStruct,LOG_WARNING_ENABLE> WarningLocker
-
type for Warnings LogStream lock guard
typedef LogStreamLocker<ErrorLogEventStruct,LOG_ERROR_ENABLE> ErrorLocker
-
type for Errors LogStream lock guard
typedef LogStreamLocker<FatalLogEventStruct,LOG_FATAL_ENABLE> FatalLocker
-
type for Fatals LogStream lock guard
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.