dodo  0.0.1
A C++ library to create containerized Linux services
logger.hpp File Reference
#include <threads/mutex.hpp>
#include <fstream>
#include <map>
#include <functional>
Include dependency graph for logger.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  dodo::common::Logger
 A Logger interface. More...
 
struct  dodo::common::Logger::FileParams
 File Logging parameters. More...
 
struct  dodo::common::Logger::SyslogParams
 syslog logging parameters. More...
 

Namespaces

 dodo
 A C++ platform interface to lean Linux services tailored for containerized deployment.
 
 dodo::common
 Common and utility interfaces.
 

Macros

#define log_Debug(what)   common::Logger::getLogger()->debug( dodo::common::Puts() << what )
 Macro to log Debug. More...
 
#define log_Error(what)   common::Logger::getLogger()->error( dodo::common::Puts() << what )
 Macro to log Error. More...
 
#define log_Fatal(what)   common::Logger::getLogger()->fatal( dodo::common::Puts() << what )
 Macro to log Fatal. More...
 
#define log_Info(what)   common::Logger::getLogger()->info( dodo::common::Puts() << what )
 Macro to log Info. More...
 
#define log_Statistics(what)   common::Logger::getLogger()->statistics( dodo::common::Puts() << what )
 Macro to log Statistics. More...
 
#define log_Trace(what)   common::Logger::getLogger()->trace( dodo::common::Puts() << what )
 Macro to log Trace. More...
 
#define log_Warning(what)   common::Logger::getLogger()->warning( dodo::common::Puts() << what )
 Macro to log Warning. More...
 

Detailed Description

Defines the dodo::network::Logger class.

Definition in file logger.hpp.

Macro Definition Documentation

◆ log_Debug

#define log_Debug (   what)    common::Logger::getLogger()->debug( dodo::common::Puts() << what )

Macro to log Debug.

Parameters
whatThe info to log. As the argument is fed to a dodo::common::Puts() it can be a << pipe-lined expression.

Definition at line 302 of file logger.hpp.

◆ log_Error

#define log_Error (   what)    common::Logger::getLogger()->error( dodo::common::Puts() << what )

Macro to log Error.

Parameters
whatThe info to log. As the argument is fed to a dodo::common::Puts() it can be a << pipe-lined expression.

Definition at line 277 of file logger.hpp.

◆ log_Fatal

#define log_Fatal (   what)    common::Logger::getLogger()->fatal( dodo::common::Puts() << what )

Macro to log Fatal.

Parameters
whatThe info to log. As the argument is fed to a dodo::common::Puts() it can be a << pipe-lined expression.

Definition at line 271 of file logger.hpp.

◆ log_Info

#define log_Info (   what)    common::Logger::getLogger()->info( dodo::common::Puts() << what )

Macro to log Info.

Parameters
whatThe info to log. As the argument is fed to a dodo::common::Puts() it can be a << pipe-lined expression.

Definition at line 289 of file logger.hpp.

◆ log_Statistics

#define log_Statistics (   what)    common::Logger::getLogger()->statistics( dodo::common::Puts() << what )

Macro to log Statistics.

Parameters
whatThe info to log. As the argument is fed to a dodo::common::Puts() it can be a << pipe-lined expression.

Definition at line 295 of file logger.hpp.

◆ log_Trace

#define log_Trace (   what)    common::Logger::getLogger()->trace( dodo::common::Puts() << what )

Macro to log Trace.

Parameters
whatThe info to log. As the argument is fed to a dodo::common::Puts() it can be a << pipe-lined expression.

Definition at line 312 of file logger.hpp.

◆ log_Warning

#define log_Warning (   what)    common::Logger::getLogger()->warning( dodo::common::Puts() << what )

Macro to log Warning.

Parameters
whatThe info to log. As the argument is fed to a dodo::common::Puts() it can be a << pipe-lined expression.

Definition at line 283 of file logger.hpp.