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

#include <LoggerImpl.h>

+ Inheritance diagram for osmscout::StreamLogger:

Public Member Functions

Line Log (Level level) override
 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 ()=default
 
Line Warn ()
 Start logging a line of warning output (there is a potential problem, but the application could handle it) More...
 
virtual ~Logger ()=default
 

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

◆ StreamLogger()

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

Member Function Documentation

◆ Log()

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

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: