libosmscout 0.1
|
A logger is a special output stream. More...
#include <Logger.h>
Classes | |
class | Destination |
Abstract base class for printing log information to a specific output sink. More... | |
class | Line |
A log consists of a number of lines. More... | |
Public Types | |
enum | Level { DEBUG , INFO , WARN , ERROR } |
Public Member Functions | |
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 |
Protected Member Functions | |
virtual Line | Log (Level level)=0 |
The actual logging method, Debug(), Info(), Warn() and Error() are dispatching to. | |
A logger is a special output stream.
It can direct internal output to either the console, a file or some other (possibly OS specific) output sink. The actual destination is defined by passing a Destination instance to a Line instance.
|
default |
|
virtualdefault |
Logger::Line osmscout::Logger::Debug | ( | ) |
Logger::Line osmscout::Logger::Error | ( | ) |
Logger::Line osmscout::Logger::Info | ( | ) |
The actual logging method, Debug(), Info(), Warn() and Error() are dispatching to.
Implemented in osmscout::StreamLogger, and osmscout::NoOpLogger.
Logger::Line osmscout::Logger::Warn | ( | ) |
Start logging a line of warning output (there is a potential problem, but the application could handle it)
References WARN.
Referenced by osmscout::Log::Warn().