TARAXA
Loading...
Searching...
No Matches
logger.hpp File Reference
#include <boost/log/sources/severity_channel_logger.hpp>
#include <string>
#include "logger/logger_config.hpp"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  taraxa
 
namespace  taraxa::logger
 

Macros

#define LOG   BOOST_LOG
 
#define LOG_OBJECTS_DEFINE
 
#define LOG_OBJECTS_CREATE(channel)
 

Typedefs

using taraxa::logger::Logger = boost::log::sources::severity_channel_logger_mt<>
 

Functions

Logger taraxa::logger::createLogger (Verbosity verboseLevel, const std::string &channel, const addr_t &node_id)
 Creates thread-safe severity channel logger.
 
Config taraxa::logger::createDefaultLoggingConfig ()
 Creates default logging config.
 
void taraxa::logger::InitLogging (Config &logging_config, const addr_t &node_id)
 Initializes logging according to the provided logging_config.
 

Macro Definition Documentation

◆ LOG

#define LOG   BOOST_LOG

◆ LOG_OBJECTS_CREATE

#define LOG_OBJECTS_CREATE (   channel)
Value:
Logger createLogger(Verbosity verboseLevel, const std::string &channel, const addr_t &node_id)
Creates thread-safe severity channel logger.
Definition logger.cpp:30
@ Info
Definition logger_config.hpp:21
@ Silent
Definition logger_config.hpp:18
@ Debug
Definition logger_config.hpp:22
@ Trace
Definition logger_config.hpp:23
@ Warning
Definition logger_config.hpp:20
@ Error
Definition logger_config.hpp:19

◆ LOG_OBJECTS_DEFINE

#define LOG_OBJECTS_DEFINE
Value:
mutable taraxa::logger::Logger log_si_; \
mutable taraxa::logger::Logger log_er_; \
mutable taraxa::logger::Logger log_wr_; \
mutable taraxa::logger::Logger log_nf_; \
mutable taraxa::logger::Logger log_dg_; \
mutable taraxa::logger::Logger log_tr_;
boost::log::sources::severity_channel_logger_mt<> Logger
Definition logger.hpp:11