|
| Patrick's Programming Library Version 7.0.0 - Dokumentation |
Allgemeine Logging-Klasse.
Öffentliche Typen | |
| enum | PRIORITY { EMERG = 1, ALERT = 2, CRIT = 3, ERR = 4, WARNING = 5, NOTICE = 6, INFO = 7, DEBUG = 8 } |
| enum | SYSLOG_FACILITY { SYSLOG_AUTH =1, SYSLOG_AUTHPRIV, SYSLOG_CONSOLE, SYSLOG_CRON, SYSLOG_DAEMON, SYSLOG_FTP, SYSLOG_KERN, SYSLOG_LPR, SYSLOG_MAIL, SYSLOG_NEWS, SYSLOG_NTP, SYSLOG_SECURITY, SYSLOG_SYSLOG, SYSLOG_USER, SYSLOG_UUCP, SYSLOG_LOCAL0, SYSLOG_LOCAL1, SYSLOG_LOCAL2, SYSLOG_LOCAL3, SYSLOG_LOCAL4, SYSLOG_LOCAL5, SYSLOG_LOCAL6, SYSLOG_LOCAL7 } |
Öffentliche Methoden | |
| Logger () | |
| ~Logger () | |
| void | addLogHandler (LogHandler *handler) |
| void | closeSyslog () |
| void | deleteFilter (const char *module, const char *function) |
| void | deleteFilter (const char *file, int line) |
| void | deleteLogHandler (LogHandler *handler) |
| void | enableConsole (bool flag=true, PRIORITY prio=Logger::DEBUG, int level=1) |
| String | getLogfile (PRIORITY prio) |
| int | getLogLevel (PRIORITY prio) |
| void | hexDump (PRIORITY prio, int level, const void *address, int bytes) |
| void | hexDump (const void *address, int bytes) |
| void | openSyslog (const String &ident, SYSLOG_FACILITY facility=SYSLOG_USER) |
| void | print (const String &text) |
| void | print (int level, const String &text) |
| void | print (PRIORITY prio, int level, const String &text) |
| void | print (PRIORITY prio, int level, const char *file, int line, const String &text) |
| void | print (PRIORITY prio, int level, const char *module, const char *function, const char *file, int line, const String &text) |
| void | printArray (PRIORITY prio, int level, const AssocArray &a, const String &text) |
| void | printArray (PRIORITY prio, int level, const char *module, const char *function, const char *file, int line, const AssocArray &a, const String &text) |
| void | printArraySingleLine (PRIORITY prio, int level, const char *module, const char *function, const char *file, int line, const AssocArray &a, const String &text) |
| void | printException (const Exception &e) |
| void | printException (const char *file, int line, const Exception &e) |
| void | printException (const char *file, int line, const char *module, const char *function, const Exception &e) |
| void | setFilter (const char *module, const char *function, int level) |
| void | setFilter (const char *file, int line, int level) |
| void | setLogfile (PRIORITY prio, const String &filename) |
| void | setLogfile (PRIORITY prio, const String &filename, int level) |
| void | setLogLevel (PRIORITY prio, int level=1) |
| void | setLogRotate (ppluint64 maxsize, int generations) |
| void | terminate () |
Private Methoden | |
| void | checkRotate (PRIORITY prio) |
| int | isFiltered (const char *module, const char *function, const char *file, int line, int level) |
| void | output (PRIORITY prio, int level, const char *module, const char *function, const char *file, int line, const String &buffer, bool printdate=true) |
| void | outputArray (PRIORITY prio, int level, const char *module, const char *function, const char *file, int line, const AssocArray &a, const char *prefix, String *Out=NULL) |
| bool | shouldPrint (const char *module, const char *function, const char *file, int line, PRIORITY prio, int level) |
Private Attribute | |
| bool | console_enabled |
| int | console_level |
| PRIORITY | console_priority |
| int | debuglevel [NUMFACILITIES] |
| AssocArray * | FilterFile |
| AssocArray * | FilterModule |
| void * | firsthandler |
| int | generations |
| bool | inrotate |
| void * | lasthandler |
| bool | logconsole |
| File | logff [NUMFACILITIES] |
| String | logfilename [NUMFACILITIES] |
| bool | logThreadId |
| ppluint64 | maxsize |
| Mutex | mutex |
| String | ProgIdentity |
| int | rotate_mechanism |
| SYSLOG_FACILITY | syslogFacility |
| String | syslogIdent |
| bool | useSyslog |
| ppl7::Logger::Logger | ( | ) |
| ppl7::Logger::~Logger | ( | ) |
| void ppl7::Logger::addLogHandler | ( | LogHandler * | handler | ) |
|
private |
| void ppl7::Logger::closeSyslog | ( | ) |
| void ppl7::Logger::deleteFilter | ( | const char * | module, |
| const char * | function | ||
| ) |
| void ppl7::Logger::deleteFilter | ( | const char * | file, |
| int | line | ||
| ) |
| void ppl7::Logger::deleteLogHandler | ( | LogHandler * | handler | ) |
| void ppl7::Logger::enableConsole | ( | bool | flag = true, |
| PRIORITY | prio = Logger::DEBUG, |
||
| int | level = 1 |
||
| ) |
| int ppl7::Logger::getLogLevel | ( | PRIORITY | prio | ) |
| void ppl7::Logger::hexDump | ( | PRIORITY | prio, |
| int | level, | ||
| const void * | address, | ||
| int | bytes | ||
| ) |
| void ppl7::Logger::hexDump | ( | const void * | address, |
| int | bytes | ||
| ) |
|
private |
| void ppl7::Logger::openSyslog | ( | const String & | ident, |
| SYSLOG_FACILITY | facility = SYSLOG_USER |
||
| ) |
|
private |
|
private |
| void ppl7::Logger::print | ( | const String & | text | ) |
| void ppl7::Logger::print | ( | int | level, |
| const String & | text | ||
| ) |
| void ppl7::Logger::print | ( | PRIORITY | prio, |
| int | level, | ||
| const char * | file, | ||
| int | line, | ||
| const String & | text | ||
| ) |
| void ppl7::Logger::print | ( | PRIORITY | prio, |
| int | level, | ||
| const char * | module, | ||
| const char * | function, | ||
| const char * | file, | ||
| int | line, | ||
| const String & | text | ||
| ) |
| void ppl7::Logger::printArray | ( | PRIORITY | prio, |
| int | level, | ||
| const AssocArray & | a, | ||
| const String & | text | ||
| ) |
| void ppl7::Logger::printArray | ( | PRIORITY | prio, |
| int | level, | ||
| const char * | module, | ||
| const char * | function, | ||
| const char * | file, | ||
| int | line, | ||
| const AssocArray & | a, | ||
| const String & | text | ||
| ) |
| void ppl7::Logger::printArraySingleLine | ( | PRIORITY | prio, |
| int | level, | ||
| const char * | module, | ||
| const char * | function, | ||
| const char * | file, | ||
| int | line, | ||
| const AssocArray & | a, | ||
| const String & | text | ||
| ) |
| void ppl7::Logger::printException | ( | const Exception & | e | ) |
| void ppl7::Logger::printException | ( | const char * | file, |
| int | line, | ||
| const Exception & | e | ||
| ) |
| void ppl7::Logger::printException | ( | const char * | file, |
| int | line, | ||
| const char * | module, | ||
| const char * | function, | ||
| const Exception & | e | ||
| ) |
| void ppl7::Logger::setFilter | ( | const char * | module, |
| const char * | function, | ||
| int | level | ||
| ) |
| void ppl7::Logger::setFilter | ( | const char * | file, |
| int | line, | ||
| int | level | ||
| ) |
| void ppl7::Logger::setLogLevel | ( | PRIORITY | prio, |
| int | level = 1 |
||
| ) |
| void ppl7::Logger::setLogRotate | ( | ppluint64 | maxsize, |
| int | generations | ||
| ) |
|
private |
| void ppl7::Logger::terminate | ( | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |