00001
00002
00003
00004
00005
00006 #ifndef GLACSWEB_LOG_H
00007 #define GLACSWEB_LOG_H
00008
00009 typedef enum log_targets {
00010 GWT_SYSLOG = 1 << 0,
00011 GWT_STDERR = 1 << 1,
00012 GWT_FILE = 1 << 2
00013 } LogTarget;
00014
00015 typedef enum log_level {
00016 GWL_FATAL = 0,
00017 GWL_ERROR = 1,
00018 GWL_WARNING = 2,
00019 GWL_INFO = 3,
00020 GWL_VERBOSE = 4,
00021 GWL_DEBUG = 5
00022 } LogLevel;
00023
00025 void LOGFilename(const char *);
00026
00028 int LOGInit(LogTarget, LogLevel max, const char * prefix);
00029
00031 void LOGShutdown();
00032
00034 void LOGSetLevel(LogLevel max);
00035
00037 void LOGWrite(LogLevel, const char *);
00038
00039 #endif