Go to the documentation of this file.
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
@ classLocal0
Definition: slog.h:113
Slog & operator()(const char *ident, Class grp=classUser, Level level=levelError)
Sets the log identifier, level, and class to use for subsequent output.
int overflow(int c)
This is the streambuf function that actually outputs the data to the device.
@ classUser
Definition: slog.h:111
void error(const char *format,...)
Print a formatted syslog string.
@ classLocal5
Definition: slog.h:118
Slog & info(void)
Definition: slog.h:290
void critical(const char *format,...)
Print a formatted syslog string.
void open(const char *ident, Class grp=classUser)
(re)opens the output stream.
@ levelInfo
Definition: slog.h:130
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
@ classLocal3
Definition: slog.h:116
Slog & operator()(void)
Does nothing except return *this.
@ classLocal1
Definition: slog.h:114
void level(Level enable)
Sets the logging level.
Definition: slog.h:258
Level
Definition: slog.h:123
@ classDaemon
Definition: slog.h:110
@ levelAlert
Definition: slog.h:125
@ levelNotice
Definition: slog.h:129
#define __EXPORT
Definition: config.h:979
@ classLocal4
Definition: slog.h:117
Slog & debug(void)
Definition: slog.h:275
@ levelCritical
Definition: slog.h:126
void info(const char *format,...)
Print a formatted syslog string.
@ classDefault
Definition: slog.h:112
Slog & notice(void)
Definition: slog.h:287
@ classLocal6
Definition: slog.h:119
Slog(void)
Default (and only) constructor.
Slog & warn(void)
Definition: slog.h:269
@ classAudit
Definition: slog.h:109
void emerg(const char *format,...)
Print a formatted syslog string.
void debug(const char *format,...)
Print a formatted syslog string.
@ levelEmergency
Definition: slog.h:124
void alert(const char *format,...)
Print a formatted syslog string.
substitute functions which may be missing in target platform libc.
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 notice(const char *format,...)
Print a formatted syslog string.
Slog & error(void)
Definition: slog.h:272
Slog & operator()(Level level, Class grp=classDefault)
Changes the log level and class to use for subsequent output.
@ levelWarning
Definition: slog.h:128
void warn(const char *format,...)
Print a formatted syslog string.
Class
Definition: slog.h:107
@ levelDebug
Definition: slog.h:131
Slog & critical(void)
Definition: slog.h:284
@ classSecurity
Definition: slog.h:108
@ levelError
Definition: slog.h:127
@ classLocal2
Definition: slog.h:115
Slog & emerg(void)
Definition: slog.h:278
Synchronization and threading services.
The slog class is used to stream messages to the system's logging facility (syslogd).
Definition: slog.h:105
Slog & alert(void)
Definition: slog.h:281