4 #ifndef RUDIMENTS_LOGGER_H
5 #define RUDIMENTS_LOGGER_H
7 #include <rudiments/private/loggerincludes.h>
12 #include <rudiments/private/logdestination.h>
15 class syslogdestinationprivate;
38 void open(
const char *ident, int32_t option,
39 int32_t facility, int32_t priority);
43 #include <rudiments/private/syslogdestination.h>
47 class filedestinationprivate;
69 bool open(
const char *filename, mode_t perms);
73 #include <rudiments/private/filedestination.h>
79 #include <rudiments/private/stdoutdestination.h>
85 #include <rudiments/private/stderrdestination.h>
122 void removeAllLogDestinations();
140 static char *logHeader(
const char *name);
145 void write(
const char *header, int32_t tabs,
150 void write(
const char *header, int32_t tabs,
char character);
154 void write(
const char *header, int32_t tabs, int32_t number);
158 void write(
const char *header, int32_t tabs,
double number);
160 #include <rudiments/private/logger.h>