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