LoggerInterface Struct Reference

An abstract base class specifying the interface for all BTK Logger objects. More...

#include <logger.hpp>

Inheritance diagram for LoggerInterface:

CachedLogger FilterLogger SimpleLogger List of all members.

Public Member Functions

virtual ~LoggerInterface ()
virtual void log (std::string const &msg, LoggerLevel msg_level=EVERYTHING) const =0
 Write a log message to a Logger.
virtual void error (std::string const &msg) const =0
 Write an error to a Logger for immediate output.

Detailed Description

An abstract base class specifying the interface for all BTK Logger objects.


Constructor & Destructor Documentation

virtual ~LoggerInterface (  )  [virtual]


Member Function Documentation

virtual void log ( std::string const &  msg,
LoggerLevel  msg_level = EVERYTHING 
) const [pure virtual]

Write a log message to a Logger.

A message passed to log may be cached or filtered as necessary. If immediate output is desired, use the error() method.

Implemented in CachedLogger, FilterLogger, and SimpleLogger.

virtual void error ( std::string const &  msg  )  const [pure virtual]

Write an error to a Logger for immediate output.

A message passed to this method will be bypass all filtering/caching mechanisms. Use judiciously.

Implemented in CachedLogger, FilterLogger, and SimpleLogger.


The documentation for this struct was generated from the following file:
Generated on Sun Jul 15 20:46:36 2007 for BTK Core by  doxygen 1.5.1