Ethereum  PoC-8
The C++ Implementation of Ethereum
Log.h File Reference
#include "CommonIO.h"
#include "FixedHash.h"
#include "Terminal.h"
#include <string>
#include <vector>
#include <boost/log/attributes/scoped_attribute.hpp>
#include <boost/log/sources/global_logger_storage.hpp>
#include <boost/log/sources/record_ostream.hpp>
#include <boost/log/sources/severity_channel_logger.hpp>

Go to the source code of this file.

Namespaces

 dev
 
 boost
 
 boost::log
 

Macros

#define LOG   BOOST_LOG
 
#define cerror   LOG(dev::g_errorLogger::get())
 
#define cwarn   LOG(dev::g_warnLogger::get())
 
#define cnote   LOG(dev::g_noteLogger::get())
 
#define cdebug   LOG(dev::g_debugLogger::get())
 
#define ctrace   LOG(dev::g_traceLogger::get())
 
#define clog(SEVERITY, CHANNEL)
 
#define LOG_SCOPED_CONTEXT(context)   BOOST_LOG_SCOPED_THREAD_ATTR("Context", boost::log::attributes::constant<std::string>(context));
 

Typedefs

using dev::Logger = boost::log::sources::severity_channel_logger<>
 

Enumerations

enum  dev::Verbosity {
  dev::VerbositySilent = -1, dev::VerbosityError = 0, dev::VerbosityWarning = 1, dev::VerbosityInfo = 2,
  dev::VerbosityDebug = 3, dev::VerbosityTrace = 4
}
 

Functions

void dev::setThreadName (std::string const &_n)
 
std::string dev::getThreadName ()
 Set the current thread's log name. More...
 
 dev::BOOST_LOG_INLINE_GLOBAL_LOGGER_CTOR_ARGS (g_errorLogger, boost::log::sources::severity_channel_logger_mt<>,(boost::log::keywords::severity=VerbosityError)(boost::log::keywords::channel="error")) BOOST_LOG_INLINE_GLOBAL_LOGGER_CTOR_ARGS(g_warnLogger
 
void dev::setupLogging (LoggingOptions const &_options)
 
Logger dev::createLogger (int _severity, std::string const &_channel)
 
boost::log::formatting_ostream & dev::operator<< (boost::log::formatting_ostream &_strm, bigint const &_value)
 
boost::log::formatting_ostream & dev::operator<< (boost::log::formatting_ostream &_strm, bigint &_value)
 
boost::log::formatting_ostream & dev::operator<< (boost::log::formatting_ostream &_strm, u256 const &_value)
 
boost::log::formatting_ostream & dev::operator<< (boost::log::formatting_ostream &_strm, u256 &_value)
 
boost::log::formatting_ostream & dev::operator<< (boost::log::formatting_ostream &_strm, u160 const &_value)
 
boost::log::formatting_ostream & dev::operator<< (boost::log::formatting_ostream &_strm, u160 &_value)
 
template<unsigned N>
boost::log::formatting_ostream & dev::operator<< (boost::log::formatting_ostream &_strm, FixedHash< N > const &_value)
 
template<unsigned N>
boost::log::formatting_ostream & dev::operator<< (boost::log::formatting_ostream &_strm, FixedHash< N > &_value)
 
boost::log::formatting_ostream & dev::operator<< (boost::log::formatting_ostream &_strm, h160 const &_value)
 
boost::log::formatting_ostream & dev::operator<< (boost::log::formatting_ostream &_strm, h160 &_value)
 
boost::log::formatting_ostream & dev::operator<< (boost::log::formatting_ostream &_strm, h256 const &_value)
 
boost::log::formatting_ostream & dev::operator<< (boost::log::formatting_ostream &_strm, h256 &_value)
 
boost::log::formatting_ostream & dev::operator<< (boost::log::formatting_ostream &_strm, h512 const &_value)
 
boost::log::formatting_ostream & dev::operator<< (boost::log::formatting_ostream &_strm, h512 &_value)
 
boost::log::formatting_ostream & dev::operator<< (boost::log::formatting_ostream &_strm, bytesConstRef _value)
 
boost::log::formatting_ostream & boost::log::operator<< (boost::log::formatting_ostream &_strm, dev::bytes const &_value)
 
boost::log::formatting_ostream & boost::log::operator<< (boost::log::formatting_ostream &_strm, dev::bytes &_value)
 
template<typename T >
boost::log::formatting_ostream & boost::log::operator<< (boost::log::formatting_ostream &_strm, std::vector< T > const &_value)
 
template<typename T >
boost::log::formatting_ostream & boost::log::operator<< (boost::log::formatting_ostream &_strm, std::vector< T > &_value)
 
template<typename T >
boost::log::formatting_ostream & boost::log::operator<< (boost::log::formatting_ostream &_strm, std::set< T > const &_value)
 
template<typename T >
boost::log::formatting_ostream & boost::log::operator<< (boost::log::formatting_ostream &_strm, std::set< T > &_value)
 
template<typename T >
boost::log::formatting_ostream & boost::log::operator<< (boost::log::formatting_ostream &_strm, std::unordered_set< T > const &_value)
 
template<typename T >
boost::log::formatting_ostream & boost::log::operator<< (boost::log::formatting_ostream &_strm, std::unordered_set< T > &_value)
 
template<typename T , typename U >
boost::log::formatting_ostream & boost::log::operator<< (boost::log::formatting_ostream &_strm, std::map< T, U > const &_value)
 
template<typename T , typename U >
boost::log::formatting_ostream & boost::log::operator<< (boost::log::formatting_ostream &_strm, std::map< T, U > &_value)
 
template<typename T , typename U >
boost::log::formatting_ostream & boost::log::operator<< (boost::log::formatting_ostream &_strm, std::unordered_map< T, U > const &_value)
 
template<typename T , typename U >
boost::log::formatting_ostream & boost::log::operator<< (boost::log::formatting_ostream &_strm, std::unordered_map< T, U > &_value)
 
template<typename T , typename U >
boost::log::formatting_ostream & boost::log::operator<< (boost::log::formatting_ostream &_strm, std::pair< T, U > const &_value)
 
template<typename T , typename U >
boost::log::formatting_ostream & boost::log::operator<< (boost::log::formatting_ostream &_strm, std::pair< T, U > &_value)
 

Macro Definition Documentation

◆ cdebug

#define cdebug   LOG(dev::g_debugLogger::get())

◆ cerror

#define cerror   LOG(dev::g_errorLogger::get())

◆ clog

#define clog (   SEVERITY,
  CHANNEL 
)
Value:
BOOST_LOG_STREAM_WITH_PARAMS(dev::g_clogLogger::get(), \
(boost::log::keywords::severity = SEVERITY)(boost::log::keywords::channel = CHANNEL))

◆ cnote

#define cnote   LOG(dev::g_noteLogger::get())

◆ ctrace

#define ctrace   LOG(dev::g_traceLogger::get())

◆ cwarn

#define cwarn   LOG(dev::g_warnLogger::get())

◆ LOG

#define LOG   BOOST_LOG

Definition at line 64 of file Log.h.

◆ LOG_SCOPED_CONTEXT

#define LOG_SCOPED_CONTEXT (   context)    BOOST_LOG_SCOPED_THREAD_ATTR("Context", boost::log::attributes::constant<std::string>(context));

Definition at line 133 of file Log.h.