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:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 LoggerAspect (Logger *logger) __attribute__((nonnull))
 Constructor.
virtual ~LoggerAspect ()
 Virtual empty destructor.
Loggerget_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.

Author:
Tim Niemueller

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]

Virtual empty destructor.

Definition at line 49 of file logger.cpp.


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.

Returns:
logger provide by the thread with this aspect

Definition at line 60 of file logger.cpp.

Referenced by fawkes::AspectIniFin::finalize(), and fawkes::AspectIniFin::init().


The documentation for this class was generated from the following files:

Generated on 1 Mar 2011 for Fawkes API by  doxygen 1.6.1