Logging class.
More...
#include <dabc/logging.h>
|
enum | EShowInfo {
lPrefix = 0x0001
, lDate = 0x0002
, lTime = 0x0004
, lFile = 0x0008
,
lFunc = 0x0010
, lLine = 0x0020
, lLevel = 0x0040
, lMessage = 0x0080
,
lNoDrop = 0x0100
, lNoPrefix = 0x0200
, lTStamp = 0x0400
, lSyslgLvl = 0x0800
} |
|
Logging class.
Accessible via dabc::lgr() function.
Definition at line 49 of file logging.h.
◆ EShowInfo
Enumerator |
---|
lPrefix | |
lDate | |
lTime | |
lFile | |
lFunc | |
lLine | |
lLevel | |
lMessage | |
lNoDrop | |
lNoPrefix | |
lTStamp | |
lSyslgLvl | |
Definition at line 51 of file logging.h.
◆ Logger()
dabc::Logger::Logger |
( |
bool |
withmutex = true | ) |
|
◆ ~Logger()
dabc::Logger::~Logger |
( |
| ) |
|
|
virtual |
◆ SetDebugMask()
void dabc::Logger::SetDebugMask |
( |
unsigned |
mask | ) |
|
|
inline |
◆ GetDebugMask()
unsigned dabc::Logger::GetDebugMask |
( |
| ) |
const |
|
inline |
◆ SetErrorMask()
void dabc::Logger::SetErrorMask |
( |
unsigned |
mask | ) |
|
|
inline |
◆ GetErrorMask()
unsigned dabc::Logger::GetErrorMask |
( |
| ) |
const |
|
inline |
◆ SetFileMask()
void dabc::Logger::SetFileMask |
( |
unsigned |
mask | ) |
|
|
inline |
◆ GetFileMask()
unsigned dabc::Logger::GetFileMask |
( |
| ) |
const |
|
inline |
◆ SetDebugLevel()
void dabc::Logger::SetDebugLevel |
( |
int |
level = 0 | ) |
|
◆ SetFileLevel()
void dabc::Logger::SetFileLevel |
( |
int |
level = 0 | ) |
|
◆ SetSyslogLevel()
void dabc::Logger::SetSyslogLevel |
( |
int |
level = 0 | ) |
|
◆ SetLogLimit()
void dabc::Logger::SetLogLimit |
( |
unsigned |
limit = 100 | ) |
|
|
inline |
◆ GetDebugLevel()
int dabc::Logger::GetDebugLevel |
( |
| ) |
const |
|
inline |
◆ GetFileLevel()
int dabc::Logger::GetFileLevel |
( |
| ) |
const |
|
inline |
◆ SetPrefix()
void dabc::Logger::SetPrefix |
( |
const char * |
prefix = 0 | ) |
|
|
inline |
◆ GetPrefix()
const char* dabc::Logger::GetPrefix |
( |
| ) |
|
|
inline |
◆ LogFile()
void dabc::Logger::LogFile |
( |
const char * |
fname | ) |
|
|
virtual |
◆ Syslog()
void dabc::Logger::Syslog |
( |
const char * |
prefix | ) |
|
|
virtual |
◆ ShowStat()
void dabc::Logger::ShowStat |
( |
bool |
tofile = true | ) |
|
◆ CloseFile()
void dabc::Logger::CloseFile |
( |
| ) |
|
Close any file open by logger.
Definition at line 161 of file logging.cxx.
◆ CheckTimeout()
void dabc::Logger::CheckTimeout |
( |
| ) |
|
|
static |
◆ DisableLogReopen()
void dabc::Logger::DisableLogReopen |
( |
| ) |
|
|
static |
◆ Instance()
static Logger* dabc::Logger::Instance |
( |
| ) |
|
|
inlinestatic |
◆ Debug()
static void dabc::Logger::Debug |
( |
int |
level, |
|
|
const char * |
filename, |
|
|
unsigned |
linenumber, |
|
|
const char * |
funcname, |
|
|
const char * |
message |
|
) |
| |
|
inlinestatic |
◆ DoOutput()
void dabc::Logger::DoOutput |
( |
int |
level, |
|
|
const char * |
filename, |
|
|
unsigned |
linenumber, |
|
|
const char * |
funcname, |
|
|
const char * |
message |
|
) |
| |
|
protectedvirtual |
◆ _ExtendLines()
void dabc::Logger::_ExtendLines |
( |
unsigned |
max | ) |
|
|
protected |
◆ _FillString()
void dabc::Logger::_FillString |
( |
std::string & |
str, |
|
|
unsigned |
mask, |
|
|
LoggerEntry * |
entry |
|
) |
| |
|
protected |
◆ _DoCheckTimeout()
void dabc::Logger::_DoCheckTimeout |
( |
| ) |
|
|
protectedvirtual |
◆ gDebug
◆ fPrev
◆ fLines
◆ fMaxLine
unsigned dabc::Logger::fMaxLine |
|
private |
◆ fMutex
Mutex* dabc::Logger::fMutex |
|
private |
◆ fFile
FILE* dabc::Logger::fFile |
|
private |
◆ fSyslogPrefix
std::string dabc::Logger::fSyslogPrefix |
|
private |
◆ fDebugMask
unsigned dabc::Logger::fDebugMask |
|
private |
◆ fErrorMask
unsigned dabc::Logger::fErrorMask |
|
private |
◆ fFileMask
unsigned dabc::Logger::fFileMask |
|
private |
◆ fDebugLevel
int dabc::Logger::fDebugLevel |
|
private |
◆ fFileLevel
int dabc::Logger::fFileLevel |
|
private |
◆ fSyslogLevel
int dabc::Logger::fSyslogLevel |
|
private |
◆ fLevel
◆ fPrefix
std::string dabc::Logger::fPrefix |
|
private |
◆ fLogFileName
std::string dabc::Logger::fLogFileName |
|
private |
◆ fLogReopenTime
double dabc::Logger::fLogReopenTime |
|
private |
◆ fLogFileModified
bool dabc::Logger::fLogFileModified |
|
private |
◆ fLogLimit
unsigned dabc::Logger::fLogLimit |
|
private |
◆ fLogReopenDisabled
bool dabc::Logger::fLogReopenDisabled |
|
private |
The documentation for this class was generated from the following files: