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

#include "logger_manager.hpp"

Collaboration diagram for logger::LoggerManagerTree:
Collaboration graph

Public Member Functions

 LoggerManagerTree (ConstLoggerConfigPtr config)
 
 LoggerManagerTree (LoggerConfig config)
 
LoggerManagerTreePtr registerChild (std::string tag, boost::optional< LogLevel > log_level, boost::optional< LogPatterns > patterns)
 
LoggerPtr getLogger ()
 Get this node's logger. Thread safe. More...
 
LoggerManagerTreePtr getChild (const std::string &tag)
 Get non-const child node by tag, if present. Thread safe. More...
 

Detailed Description

A node of logger managers tree. It stores the configuration needed to create a logger corresponding to this node and its children. Thread safe.

Constructor & Destructor Documentation

logger::LoggerManagerTree::LoggerManagerTree ( ConstLoggerConfigPtr  config)
explicit

Here is the caller graph for this function:

logger::LoggerManagerTree::LoggerManagerTree ( LoggerConfig  config)
explicit

Here is the call graph for this function:

Member Function Documentation

LoggerManagerTreePtr logger::LoggerManagerTree::getChild ( const std::string &  tag)

Get non-const child node by tag, if present. Thread safe.

Here is the call graph for this function:

LoggerPtr logger::LoggerManagerTree::getLogger ( )

Get this node's logger. Thread safe.

LoggerManagerTreePtr logger::LoggerManagerTree::registerChild ( std::string  tag,
boost::optional< LogLevel log_level,
boost::optional< LogPatterns patterns 
)

Register a child configuration. The new child's configuration parameters are taken from the parent optionally overrided by the arguments. Thread safe.

Parameters
tag- the child's tag, without any parents' prefixes
log_level- override the log level for the new child
patterns- override the patterns

Here is the call graph for this function:

Here is the caller graph for this function:


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