24 #include <aspect/inifins/logger.h> 25 #include <aspect/logger.h> 26 #include <logging/logger_employer.h> 27 #include <core/threading/thread_initializer.h> 28 #include <core/threading/thread_finalizer.h> 46 __employer = employer;
55 if (logger_thread == 0) {
57 "LoggerAspect, but RTTI says it " 58 "has not. ", thread->
name());
65 "could not be added.");
70 "could not be added.");
80 if (logger_thread == 0) {
82 "LoggerAspect, but RTTI says it " 83 "has not. ", thread->
name());
LoggerAspectIniFin(LoggerEmployer *employer)
Constructor.
virtual void init(Thread *thread)
Initialize thread.
Thread aspect that allows to provide a logger to Fawkes.
virtual void finalize(Thread *thread)
Finalize thread.
virtual void add_logger(Logger *logger)=0
Add a new logger.
Fawkes library namespace.
Logger employer The LoggerEmployer shall pipe all log messages of the system to added loggers...
Thread class encapsulation of pthreads.
Thread cannot be initialized.
Base class for exceptions in Fawkes.
const char * name() const
Get name of thread.
virtual void remove_logger(Logger *logger)=0
Remove a logger.
Thread cannot be finalized.
Logger * get_logger() const
Get time source.
void append(const char *format,...)
Append messages to the message list.
Aspect initializer/finalizer base class.