class GradSoft::Logger

Main class for events log

Public Methods

[more] Logger()
[more] Logger(const char* fname, bool dup_to_stderr=false) throw(IOException)
[more] ~Logger()
[more]void setOutputFile(const char* fname) throw(IOException)
[more]void setCallback(LogEventType evTag, void (*callback)(const char* msg))
[more]void setDuppedToStderr(bool x)
set property: dup output to standart error stream for all streams
[more]void setSyslogOutput(bool x)
set output to syslog: if true we log to syslog, if false - no.
[more]void put_event(LogEventType evTag, const char* value, bool dup_to_stderr = false)
[more]DebugLogStream& debugs()
[more]const DebugLogStream& debugs() const
[more]InfoLogStream& infos()
[more]const InfoLogStream& infos() const
[more]WarningLogStream& warnings()
[more]const WarningLogStream& warnings() const
[more]ErrorLogStream& errors()
[more]const ErrorLogStream& errors() const
[more]FatalLogStream& fatals()
[more]const FatalLogStream& fatals() const
[more]static const char* getStringEventType(LogEventType ev)

Public Members

[more]struct IOException
Struct, which indicate input/output exception
[more]typedef LogStreamLocker<DebugLogEventStruct,LOG_DEBUG_ENABLE> DebugLocker
type for Debug LogStream lock guard
[more]typedef LogStreamLocker<InfoLogEventStruct, LOG_INFO_ENABLE> InfoLocker
type for Info LogStream lock guard
[more]typedef LogStreamLocker<WarningLogEventStruct,LOG_WARNING_ENABLE> WarningLocker
type for Warnings LogStream lock guard
[more]typedef LogStreamLocker<ErrorLogEventStruct,LOG_ERROR_ENABLE> ErrorLocker
type for Errors LogStream lock guard
[more]typedef LogStreamLocker<FatalLogEventStruct,LOG_FATAL_ENABLE> FatalLocker
type for Fatals LogStream lock guard


Documentation

Main class for events log
ostruct IOException
Struct, which indicate input/output exception

oconst char* what() const

o Logger()

o Logger(const char* fname, bool dup_to_stderr=false) throw(IOException)

o ~Logger()

ovoid setOutputFile(const char* fname) throw(IOException)

ovoid setCallback(LogEventType evTag, void (*callback)(const char* msg))

ovoid setDuppedToStderr(bool x)
set property: dup output to standart error stream for all streams

ovoid setSyslogOutput(bool x)
set output to syslog: if true we log to syslog, if false - no. by default, output to syslog is enabled.

ovoid put_event(LogEventType evTag, const char* value, bool dup_to_stderr = false)

oDebugLogStream& debugs()

oconst DebugLogStream& debugs() const

oInfoLogStream& infos()

oconst InfoLogStream& infos() const

oWarningLogStream& warnings()

oconst WarningLogStream& warnings() const

oErrorLogStream& errors()

oconst ErrorLogStream& errors() const

oFatalLogStream& fatals()

oconst FatalLogStream& fatals() const

ostatic const char* getStringEventType(LogEventType ev)

otypedef LogStreamLocker<DebugLogEventStruct,LOG_DEBUG_ENABLE> DebugLocker
type for Debug LogStream lock guard

otypedef LogStreamLocker<InfoLogEventStruct, LOG_INFO_ENABLE> InfoLocker
type for Info LogStream lock guard

otypedef LogStreamLocker<WarningLogEventStruct,LOG_WARNING_ENABLE> WarningLocker
type for Warnings LogStream lock guard

otypedef LogStreamLocker<ErrorLogEventStruct,LOG_ERROR_ENABLE> ErrorLocker
type for Errors LogStream lock guard

otypedef 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++.