24 #ifndef __UTILS_LOGGING_LOGGER_H_
25 #define __UTILS_LOGGING_LOGGER_H_
27 #include <core/exception.h>
64 const char *component,
const char *format, ...);
65 virtual void log_debug(
const char *component,
const char *format, ...) = 0;
66 virtual void log_info(
const char *component,
const char *format, ...) = 0;
67 virtual void log_warn(
const char *component,
const char *format, ...) = 0;
68 virtual void log_error(
const char *component,
const char *format, ...) = 0;
78 const char *format, va_list va);
80 const char *format, va_list va) = 0;
81 virtual void vlog_info(
const char *component,
82 const char *format, va_list va) = 0;
83 virtual void vlog_warn(
const char *component,
84 const char *format, va_list va) = 0;
86 const char *format, va_list va) = 0;
90 const char *component,
const char *format, ...);
91 virtual void tlog_debug(
struct timeval *t,
const char *component,
92 const char *format, ...) = 0;
93 virtual void tlog_info(
struct timeval *t,
const char *component,
94 const char *format, ...) = 0;
95 virtual void tlog_warn(
struct timeval *t,
const char *component,
96 const char *format, ...) = 0;
97 virtual void tlog_error(
struct timeval *t,
const char *component,
98 const char *format, ...) = 0;
100 virtual void tlog(
LogLevel level,
struct timeval *t,
const char *component,
102 virtual void tlog_debug(
struct timeval *t,
const char *component,
104 virtual void tlog_info(
struct timeval *t,
const char *component,
106 virtual void tlog_warn(
struct timeval *t,
const char *component,
108 virtual void tlog_error(
struct timeval *t,
const char *component,
111 virtual void vtlog(
LogLevel level,
struct timeval *t,
const char *component,
112 const char *format, va_list va);
113 virtual void vtlog_debug(
struct timeval *t,
const char *component,
114 const char *format, va_list va) = 0;
115 virtual void vtlog_info(
struct timeval *t,
const char *component,
116 const char *format, va_list va) = 0;
117 virtual void vtlog_warn(
struct timeval *t,
const char *component,
118 const char *format, va_list va) = 0;
119 virtual void vtlog_error(
struct timeval *t,
const char *component,
120 const char *format, va_list va) = 0;