libosmscout 0.1
Loading...
Searching...
No Matches
osmscout::StreamLogger Class Reference

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

#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.
 StreamLogger (std::ostream &infoStream, std::ostream &errorStream)
Public Member Functions inherited from osmscout::Logger
Line Debug ()
 Start logging a line of debug output.
Line Error ()
 Start logging a line of error output.
Line Info ()
 Start logging a line of informational output.
 Logger ()=default
Line Warn ()
 Start logging a line of warning output (there is a potential problem, but the application could handle it).
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: