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 "
Aspect initializer/finalizer base class.
Thread cannot be finalized.
Thread cannot be initialized.
Base class for exceptions in Fawkes.
void append(const char *format,...) noexcept
Append messages to the message list.
LoggerAspectIniFin(LoggerEmployer *employer)
Constructor.
virtual void init(Thread *thread)
Initialize thread.
virtual void finalize(Thread *thread)
Finalize thread.
Thread aspect that allows to provide a logger to Fawkes.
Logger * get_logger() const
Get time source.
Logger employer The LoggerEmployer shall pipe all log messages of the system to added loggers.
virtual void add_logger(Logger *logger)=0
Add a new logger.
virtual void remove_logger(Logger *logger)=0
Remove a logger.
Thread class encapsulation of pthreads.
const char * name() const
Get name of thread.
Fawkes library namespace.