Fawkes API
Fawkes Development Version
|
Thread aspect that allows to provide a logger to Fawkes. More...
#include <>>
Public Member Functions | |
LoggerAspect (Logger *logger) __attribute__((nonnull)) | |
Constructor. More... | |
virtual | ~LoggerAspect () |
Virtual empty destructor. More... | |
Logger * | get_logger () const |
Get time source. More... | |
![]() | |
const std::list< const char * > & | get_aspects () const |
Get list of aspect names attached to a aspected thread. More... | |
Additional Inherited Members | |
![]() | |
void | add_aspect (const char *name) |
Add an aspect to a thread. More... | |
Thread aspect that allows to provide a logger to Fawkes.
The logger will be added to the list of loggers and will get all the log messages. This aspect can be used for example to attach Fawkes to a custom logging facility.
fawkes::LoggerAspect::LoggerAspect | ( | Logger * | logger | ) |
Constructor.
logger | Logger to add to the Fawkes loggers |
Definition at line 46 of file logger.cpp.
References fawkes::Aspect::add_aspect().
|
virtual |
Virtual empty destructor.
Definition at line 53 of file logger.cpp.
Logger * fawkes::LoggerAspect::get_logger | ( | ) | const |
Get time source.
This method is called by the aspect initializer to get the time source the thread with this aspect provides.
Definition at line 64 of file logger.cpp.
Referenced by fawkes::LoggerAspectIniFin::finalize(), and fawkes::LoggerAspectIniFin::init().