Server 0.0.1
HTTP/REST server implementation

include/logger/logger.h

Go to the documentation of this file.
00001 
00025 #ifndef __LOGGER_LOGGER_H__
00026 #define __LOGGER_LOGGER_H__
00027 
00028 #include "class.h"
00029 
00030 typedef enum logger_level {
00031         LOGGER_DEBUG=0,
00032         LOGGER_INFO,
00033         LOGGER_NOTICE,
00034         LOGGER_WARNING,
00035         LOGGER_ERR,
00036         LOGGER_CRIT,
00037         LOGGER_ALERT,
00038         LOGGER_EMERG
00039 } logger_level;
00040 
00041 extern const char * const logger_level_str[];
00042 
00043 CLASS(Logger) {
00044         logger_level min_level;
00045 };
00046 
00047 CLASS(LoggerStderr) {
00048         EXTENDS(Logger);
00049 };
00050 
00051 CLASS(LoggerSyslog) {
00052         EXTENDS(Logger);
00053 };
00054 
00055 #endif // __LOGGER_LOGGER_H__
00056 
00057 // vim: set ts=4 sw=4:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines