fawkes::LoggerAspect Class Reference
[Fawkes Thread Aspects]
Thread aspect that allows to provide a logger to Fawkes.
More...
#include <aspect/logger.h>
Inheritance diagram for fawkes::LoggerAspect:

Public Member Functions | |
| LoggerAspect (Logger *logger) __attribute__((nonnull)) | |
| Constructor. | |
| virtual | ~LoggerAspect () |
| Virtual empty destructor. | |
| Logger * | get_logger () const |
| Get time source. | |
Detailed Description
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.
Definition at line 31 of file logger.h.
Constructor & Destructor Documentation
| fawkes::LoggerAspect::LoggerAspect | ( | Logger * | logger | ) |
Constructor.
- Parameters:
-
logger Logger to add to the Fawkes loggers
Definition at line 43 of file logger.cpp.
| fawkes::LoggerAspect::~LoggerAspect | ( | ) | [virtual] |
Member Function Documentation
| 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 59 of file logger.cpp.
Referenced by fawkes::AspectIniFin::finalize(), and fawkes::AspectIniFin::init().
The documentation for this class was generated from the following files:
- src/libs/aspect/logger.h
- src/libs/aspect/logger.cpp

