server 0.0.1
basicserverinfrastructure

include/logger.h

Go to the documentation of this file.
00001 #ifndef __LOGGER_H__
00002 #define __LOGGER_H__
00003 
00004 #include "class.h"
00005 
00006 typedef enum logger_level {
00007         LOGGER_DEBUG=0,
00008         LOGGER_INFO,
00009         LOGGER_NOTICE,
00010         LOGGER_WARNING,
00011         LOGGER_ERR,
00012         LOGGER_CRIT,
00013         LOGGER_ALERT,
00014         LOGGER_EMERG
00015 } logger_level;
00016 
00017 extern const char * const logger_level_str[];
00018 
00019 CLASS(Logger) {
00020         logger_level min_level;
00021 };
00022 
00023 CLASS(LoggerStderr) {
00024         EXTENDS(Logger);
00025 };
00026 
00027 CLASS(LoggerSyslog) {
00028         EXTENDS(Logger);
00029 };
00030 
00031 #endif // __LOGGER_H__
00032 
00033 // vim: set ts=4 sw=4:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines