23 #ifndef __PLUGINS_MONGODB_MONGODB_LOGGER_THREAD_H_ 24 #define __PLUGINS_MONGODB_MONGODB_LOGGER_THREAD_H_ 26 #include <core/threading/thread.h> 27 #include <aspect/logging.h> 28 #include <aspect/logger.h> 29 #include <aspect/configurable.h> 30 #include <aspect/clock.h> 31 #include <plugins/mongodb/aspect/mongodb.h> 54 virtual void finalize();
56 virtual void log_debug(
const char *component,
const char *format, ...);
57 virtual void log_info(
const char *component,
const char *format, ...);
58 virtual void log_warn(
const char *component,
const char *format, ...);
59 virtual void log_error(
const char *component,
const char *format, ...);
61 virtual void vlog_debug(
const char *component,
const char *format, va_list va);
62 virtual void vlog_info(
const char *component,
const char *format, va_list va);
63 virtual void vlog_warn(
const char *component,
const char *format, va_list va);
64 virtual void vlog_error(
const char *component,
const char *format, va_list va);
71 virtual void tlog_debug(
struct timeval *t,
const char *component,
72 const char *format, ...);
73 virtual void tlog_info(
struct timeval *t,
const char *component,
74 const char *format, ...);
75 virtual void tlog_warn(
struct timeval *t,
const char *component,
76 const char *format, ...);
77 virtual void tlog_error(
struct timeval *t,
const char *component,
78 const char *format, ...);
80 virtual void tlog_debug(
struct timeval *t,
const char *component,
82 virtual void tlog_info(
struct timeval *t,
const char *component,
84 virtual void tlog_warn(
struct timeval *t,
const char *component,
86 virtual void tlog_error(
struct timeval *t,
const char *component,
89 virtual void vtlog_debug(
struct timeval *t,
const char *component,
90 const char *format, va_list va);
91 virtual void vtlog_info(
struct timeval *t,
const char *component,
92 const char *format, va_list va);
93 virtual void vtlog_warn(
struct timeval *t,
const char *component,
94 const char *format, va_list va);
95 virtual void vtlog_error(
struct timeval *t,
const char *component,
96 const char *format, va_list va);
102 void insert_message(
LogLevel ll,
const char *component,
const char *format,
105 void tlog_insert_message(
LogLevel ll,
struct timeval *t,
const char *component,
106 const char *format, va_list va);
107 void tlog_insert_message(
LogLevel ll,
struct timeval *t,
const char *component,
111 std::string __collection;
Thread aspect that allows to provide a logger to Fawkes.
Thread aspect that allows to obtain the current time from the clock.
Thread that provides a logger writing to MongoDB.
Fawkes library namespace.
virtual void run()
Code to execute in the thread.
virtual void run()
Stub to see name in backtrace for easier debugging.
Thread class encapsulation of pthreads.
Base class for exceptions in Fawkes.
Thread aspect to access MongoDB.
Thread aspect to log output.
Thread aspect to access configuration data.
Mutex mutual exclusion lock.