Static wrappers around syslog(3): init() opens the log, and each message function prefixes the format with a level letter (D, I, W, E or C) in angle brackets.
More...
#include <SysLog.hh>
|
| static void | init (const char *instrument, int level) |
| | Open syslog (facility LOG_USER, options LOG_PID and LOG_PERROR, so messages also go to stderr) with ident instrument-program, or just the program name if instrument is null, truncated to 30 characters.
|
| |
| static void | debug (const char *fmt,...) |
| | Log fmt with its arguments at LOG_DEBUG; the format is prefixed with the letter D in angle brackets and a space.
|
| |
| static void | info (const char *fmt,...) |
| | Log fmt with its arguments at LOG_INFO; the format is prefixed with the letter I in angle brackets and a space.
|
| |
| static void | warning (const char *fmt,...) |
| | Log fmt with its arguments at LOG_WARNING; the format is prefixed with the letter W in angle brackets and a space.
|
| |
| static void | error (const char *fmt,...) |
| | Log fmt with its arguments at LOG_ERR; the format is prefixed with the letter E in angle brackets and a space.
|
| |
| static void | critical (const char *fmt,...) |
| | Log fmt with its arguments at LOG_CRIT; the format is prefixed with the letter C in angle brackets and a space.
|
| |
Static wrappers around syslog(3): init() opens the log, and each message function prefixes the format with a level letter (D, I, W, E or C) in angle brackets.
◆ critical()
| static void psalg::SysLog::critical |
( |
const char * |
fmt, |
|
|
|
... |
|
) |
| |
|
inlinestatic |
Log fmt with its arguments at LOG_CRIT; the format is prefixed with the letter C in angle brackets and a space.
◆ debug()
| static void psalg::SysLog::debug |
( |
const char * |
fmt, |
|
|
|
... |
|
) |
| |
|
inlinestatic |
Log fmt with its arguments at LOG_DEBUG; the format is prefixed with the letter D in angle brackets and a space.
◆ error()
| static void psalg::SysLog::error |
( |
const char * |
fmt, |
|
|
|
... |
|
) |
| |
|
inlinestatic |
Log fmt with its arguments at LOG_ERR; the format is prefixed with the letter E in angle brackets and a space.
◆ info()
| static void psalg::SysLog::info |
( |
const char * |
fmt, |
|
|
|
... |
|
) |
| |
|
inlinestatic |
Log fmt with its arguments at LOG_INFO; the format is prefixed with the letter I in angle brackets and a space.
◆ init()
| static void psalg::SysLog::init |
( |
const char * |
instrument, |
|
|
int |
level |
|
) |
| |
|
inlinestatic |
Open syslog (facility LOG_USER, options LOG_PID and LOG_PERROR, so messages also go to stderr) with ident instrument-program, or just the program name if instrument is null, truncated to 30 characters.
Then set the log mask to LOG_UPTO(level).
◆ warning()
| static void psalg::SysLog::warning |
( |
const char * |
fmt, |
|
|
|
... |
|
) |
| |
|
inlinestatic |
Log fmt with its arguments at LOG_WARNING; the format is prefixed with the letter W in angle brackets and a space.
The documentation for this class was generated from the following file: