libosmscout  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
osmscout::StreamLogger Class Reference

The StreamLogger allows to direct logging output to a standard library std::ostream. More...

#include <Logger.h>

+ Inheritance diagram for osmscout::StreamLogger:

Public Member Functions

Line Log (Level level)
 The actual logging method, Debug(), Info(), Warn() and Error() are dispatching to. More...
 
 StreamLogger (std::ostream &infoStream, std::ostream &errorStream)
 
- Public Member Functions inherited from osmscout::Logger
Line Debug ()
 Start logging a line of debug output. More...
 
Line Error ()
 Start logging a line of error output. More...
 
Line Info ()
 Start logging a line of informational output. More...
 
 Logger ()
 
Line Warn ()
 Start logging a line of warning output (there is a potential problem, but the application could handle it) More...
 
virtual ~Logger ()
 

Additional Inherited Members

- Public Types inherited from osmscout::Logger
enum  Level { DEBUG, INFO, WARN, ERROR }
 

Detailed Description

The StreamLogger allows to direct logging output to a standard library std::ostream.

IT allows to assign one stream for DEBUG and INFO logging and a different stream for WARN and ERROR log output.

Constructor & Destructor Documentation

osmscout::StreamLogger::StreamLogger ( std::ostream &  infoStream,
std::ostream &  errorStream 
)

Member Function Documentation

Logger::Line osmscout::StreamLogger::Log ( Level  level)
virtual

The actual logging method, Debug(), Info(), Warn() and Error() are dispatching to.

Implements osmscout::Logger.

References osmscout::Logger::DEBUG, and osmscout::Logger::INFO.


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