47 #ifndef CCXX_MISSING_H_
51 #ifndef CCXX_THREAD_H_
59 #ifdef CCXX_NAMESPACES
135 #ifndef HAVE_SYSLOG_H
144 ThreadImpl *getPriv(
void);
182 Level level = levelError);
202 void error(
const char *format, ...);
209 void warn(
const char *format, ...);
216 void debug(
const char *format, ...);
223 void emerg(
const char *format, ...);
230 void alert(
const char *format, ...);
251 void info(
const char *format, ...);
301 #ifdef CCXX_NAMESPACES
The Mutex class is used to protect a section of code so that at any given time only a single thread c...
Definition: thread.h:187
The slog class is used to stream messages to the system's logging facility (syslogd).
Definition: slog.h:105
Slog & operator()(void)
Does nothing except return *this.
void error(const char *format,...)
Print a formatted syslog string.
void info(const char *format,...)
Print a formatted syslog string.
Slog & alert(void)
Definition: slog.h:281
void warn(const char *format,...)
Print a formatted syslog string.
void alert(const char *format,...)
Print a formatted syslog string.
Level
Definition: slog.h:123
@ levelEmergency
Definition: slog.h:124
@ levelAlert
Definition: slog.h:125
@ levelInfo
Definition: slog.h:130
@ levelWarning
Definition: slog.h:128
@ levelDebug
Definition: slog.h:131
@ levelCritical
Definition: slog.h:126
@ levelNotice
Definition: slog.h:129
@ levelError
Definition: slog.h:127
void notice(const char *format,...)
Print a formatted syslog string.
Slog & warn(void)
Definition: slog.h:269
Slog(void)
Default (and only) constructor.
int overflow(int c)
This is the streambuf function that actually outputs the data to the device.
Slog & critical(void)
Definition: slog.h:284
Slog & notice(void)
Definition: slog.h:287
Slog & error(void)
Definition: slog.h:272
void debug(const char *format,...)
Print a formatted syslog string.
void clogEnable(bool f=true)
Enables or disables the echoing of the messages to clog in addition to the syslog daemon.
Definition: slog.h:266
void critical(const char *format,...)
Print a formatted syslog string.
void emerg(const char *format,...)
Print a formatted syslog string.
void level(Level enable)
Sets the logging level.
Definition: slog.h:258
Slog & emerg(void)
Definition: slog.h:278
Slog & operator()(Level level, Class grp=classDefault)
Changes the log level and class to use for subsequent output.
Slog & info(void)
Definition: slog.h:290
Class
Definition: slog.h:107
@ classLocal1
Definition: slog.h:114
@ classLocal6
Definition: slog.h:119
@ classDaemon
Definition: slog.h:110
@ classLocal0
Definition: slog.h:113
@ classLocal2
Definition: slog.h:115
@ classLocal3
Definition: slog.h:116
@ classUser
Definition: slog.h:111
@ classAudit
Definition: slog.h:109
@ classSecurity
Definition: slog.h:108
@ classDefault
Definition: slog.h:112
@ classLocal5
Definition: slog.h:118
@ classLocal4
Definition: slog.h:117
void open(const char *ident, Class grp=classUser)
(re)opens the output stream.
Slog & operator()(const char *ident, Class grp=classUser, Level level=levelError)
Sets the log identifier, level, and class to use for subsequent output.
Slog & debug(void)
Definition: slog.h:275
#define __EXPORT
Definition: config.h:979
substitute functions which may be missing in target platform libc.
Synchronization and threading services.