logger.c
480 Bytes
#include <stdarg.h>
#include "logger.h"
#include "interface/class.h"
#include "interface/logger.h"
const
char * const
logger_level_str[] = {
"DEBUG",
"INFO",
"NOTICE",
"WARNING",
"ERR",
"CRIT",
"ALERT",
"EMERG"
};
static
void
ctor(void * _this, va_list * params)
{
Logger this = _this;
this->min_level = va_arg(*params, int);
}
static void dtor(void * _this) {}
INIT_IFACE(Class, ctor, dtor, NULL);
CREATE_CLASS(Logger, NULL, IFACE(Class));
// vim: set ts=4 sw=4: