You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
455 B
33 lines
455 B
#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:
|