libosmscout
0.1
|
#include <Logger.h>
Classes | |
class | Destination |
class | Line |
Public Types | |
enum | Level { DEBUG, INFO, WARN, ERROR } |
Public Member Functions | |
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 |
Protected Member Functions | |
virtual Line | Log (Level level)=0 |
The actual logging method, Debug(), Info(), Warn() and Error() are dispatching to. More... | |
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 | ( | ) |
Start logging a line of debug output.
Referenced by osmscout::Log::Debug().
Logger::Line osmscout::Logger::Error | ( | ) |
Start logging a line of error output.
Referenced by osmscout::Log::Error().
Logger::Line osmscout::Logger::Info | ( | ) |
Start logging a line of informational output.
Referenced by osmscout::Log::Info().
The actual logging method, Debug(), Info(), Warn() and Error() are dispatching to.
Implemented in osmscout::NoOpLogger, and osmscout::StreamLogger.
Logger::Line osmscout::Logger::Warn | ( | ) |
Start logging a line of warning output (there is a potential problem, but the application could handle it)
Referenced by osmscout::Log::Warn().