|
Defines |
#define | y2log_suffix |
#define | y2log_prefix "" |
#define | y2_logger(level, comp, file, line, function, format, args...) |
#define | y2_vlogger(level, comp, file, line, function, format, args) |
#define | y2logger(level, format, args...) y2_logger(level,y2log_prefix,__FILE__,__LINE__,__FUNCTION__,format,##args) |
#define | y2vlogger(level, format, ap) y2_vlogger(level,y2log_prefix,__FILE__,__LINE__,__FUNCTION__,format,ap) |
#define | y2debug(format, args...) y2logger(LOG_DEBUG,format,##args) |
#define | y2milestone(format, args...) y2logger(LOG_MILESTONE,format,##args) |
#define | y2warning(format, args...) y2logger(LOG_WARNING,format,##args) |
#define | y2error(format, args...) y2logger(LOG_ERROR,format,##args) |
#define | y2security(format, args...) y2logger(LOG_SECURITY,format,##args) |
#define | y2internal(format, args...) y2logger(LOG_INTERNAL,format,##args) |
Enumerations |
enum | loglevel_t {
LOG_DEBUG = 0,
LOG_MILESTONE = 1,
LOG_WARNING = 2,
LOG_ERROR = 3,
LOG_SECURITY = 4,
LOG_INTERNAL = 5
} |
Functions |
void | y2_logger_function (loglevel_t level, const char *component, const char *file, const int line, const char *func, const char *format,...) __attribute__((format(printf |
void | y2_vlogger_function (loglevel_t level, const char *component, const char *file, const int line, const char *func, const char *format, va_list ap) |
bool | should_be_logged (int loglevel, string componentname) |
void | set_log_filename (string filename) |
string | get_log_filename () |
void | set_log_conf (string confname) |
void | set_log_simple_mode (bool simple) |
void | set_log_debug (bool on=true) |
bool | get_log_debug () |