libosmscout  1.1.1
Classes | Public Types | Public Member Functions | Protected Member Functions | List of all members
osmscout::Logger Class Referenceabstract

#include <libosmscout/include/osmscout/util/Logger.h>

Inheritance diagram for osmscout::Logger:
Inheritance graph
[legend]

Classes

class  Destination
 
class  Line
 

Public Types

enum  Level { DEBUG, INFO, WARN, ERROR }
 

Public Member Functions

 Logger ()=default
 
virtual ~Logger ()=default
 
Line Debug ()
 
Line Info ()
 
Line Warn ()
 
Line Error ()
 

Protected Member Functions

virtual Line Log (Level level)=0
 

Detailed Description

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.

Member Enumeration Documentation

◆ Level

Enumerator
DEBUG 
INFO 
WARN 
ERROR 

Constructor & Destructor Documentation

◆ Logger()

osmscout::Logger::Logger ( )
default

◆ ~Logger()

virtual osmscout::Logger::~Logger ( )
virtualdefault

Member Function Documentation

◆ Debug()

Line osmscout::Logger::Debug ( )

Start logging a line of debug output

◆ Error()

Line osmscout::Logger::Error ( )

Start logging a line of error output

◆ Info()

Line osmscout::Logger::Info ( )

Start logging a line of informational output

◆ Log()

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

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

Implemented in osmscout::StreamLogger, and osmscout::NoOpLogger.

◆ Warn()

Line osmscout::Logger::Warn ( )

Start logging a line of warning output (there is a potential problem, but the application could handle it)


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