logger.h 455 Bytes
#ifndef __LOGGER_H__
#define __LOGGER_H__

#include "class.h"

typedef enum logger_level {
	LOGGER_DEBUG=0,
	LOGGER_INFO,
	LOGGER_NOTICE,
	LOGGER_WARNING,
	LOGGER_ERR,
	LOGGER_CRIT,
	LOGGER_ALERT,
	LOGGER_EMERG
} logger_level;

extern const char * const logger_level_str[];

CLASS(Logger) {
	logger_level min_level;
};

CLASS(LoggerStderr) {
	EXTENDS(Logger);
};

CLASS(LoggerSyslog) {
	EXTENDS(Logger);
};

#endif // __LOGGER_H__

// vim: set ts=4 sw=4: