hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
logger::Logger Class Referenceabstract

#include "logger.hpp"

Inheritance diagram for logger::Logger:
Inheritance graph
Collaboration diagram for logger::Logger:
Collaboration graph

Public Types

using Level = LogLevel
 

Public Member Functions

virtual ~Logger ()=default
 
template<typename... Args>
void trace (const std::string &format, const Args &...args) const
 
template<typename... Args>
void debug (const std::string &format, const Args &...args) const
 
template<typename... Args>
void info (const std::string &format, const Args &...args) const
 
template<typename... Args>
void warn (const std::string &format, const Args &...args) const
 
template<typename... Args>
void error (const std::string &format, const Args &...args) const
 
template<typename... Args>
void critical (const std::string &format, const Args &...args) const
 
template<typename... Args>
void log (Level level, const std::string &format, const Args &...args) const
 

Protected Member Functions

virtual void logInternal (Level level, const std::string &s) const =0
 
virtual bool shouldLog (Level level) const =0
 

Member Typedef Documentation

Constructor & Destructor Documentation

virtual logger::Logger::~Logger ( )
virtualdefault

Member Function Documentation

template<typename... Args>
void logger::Logger::critical ( const std::string &  format,
const Args &...  args 
) const
inline
template<typename... Args>
void logger::Logger::debug ( const std::string &  format,
const Args &...  args 
) const
inline
template<typename... Args>
void logger::Logger::error ( const std::string &  format,
const Args &...  args 
) const
inline
template<typename... Args>
void logger::Logger::info ( const std::string &  format,
const Args &...  args 
) const
inline
template<typename... Args>
void logger::Logger::log ( Level  level,
const std::string &  format,
const Args &...  args 
) const
inline

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void logger::Logger::logInternal ( Level  level,
const std::string &  s 
) const
protectedpure virtual

Implemented in logger::DummyLogger.

virtual bool logger::Logger::shouldLog ( Level  level) const
protectedpure virtual

Whether the configured logging level is at least as verbose as the one given in parameter.

Implemented in logger::DummyLogger.

template<typename... Args>
void logger::Logger::trace ( const std::string &  format,
const Args &...  args 
) const
inline
template<typename... Args>
void logger::Logger::warn ( const std::string &  format,
const Args &...  args 
) const
inline

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