Server 0.0.1
HTTP/REST server implementation

src/logger/logger.c

Go to the documentation of this file.
00001 
00023 #include <stdarg.h>
00024 
00025 #include "class.h"
00026 #include "logger/logger.h"
00027 #include "logger/interface/logger.h"
00028 
00029 const
00030 char * const
00031 logger_level_str[] = {
00032         "DEBUG",
00033         "INFO",
00034         "NOTICE",
00035         "WARNING",
00036         "ERR",
00037         "CRIT",
00038         "ALERT",
00039         "EMERG"
00040 };
00041 
00042 static
00043 int
00044 loggerCtor(void * _this, va_list * params)
00045 {
00046         Logger this = _this;
00047         this->min_level = va_arg(*params, int);
00048 
00049         return 0;
00050 }
00051 
00052 static void loggerDtor(void * _this) {}
00053 
00054 INIT_IFACE(Class, loggerCtor, loggerDtor, NULL);
00055 CREATE_CLASS(Logger, NULL, IFACE(Class));
00056 
00057 // vim: set ts=4 sw=4:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines