CatapultServer  v0.5.0.1 (Elephant)
catapult::utils::LogFilter Struct Reference

Filter used for filtering logs by level and/or component. More...

Classes

class  Impl
 

Public Member Functions

 LogFilter (LogLevel level)
 Creates a log filter that sets the default log level across all components. More...
 
 ~LogFilter ()
 Destroys the log filter. More...
 
boost::log::filter toBoostFilter () const
 Creates an equivalent boost log filter. More...
 
void setLevel (const char *name, LogLevel level)
 Sets the log level for the component specified by name. More...
 

Private Attributes

std::unique_ptr< Implm_pImpl
 

Detailed Description

Filter used for filtering logs by level and/or component.

Constructor & Destructor Documentation

◆ LogFilter()

catapult::utils::LogFilter::LogFilter ( LogLevel  level)
explicit

Creates a log filter that sets the default log level across all components.

◆ ~LogFilter()

catapult::utils::LogFilter::~LogFilter ( )
default

Destroys the log filter.

Member Function Documentation

◆ setLevel()

void catapult::utils::LogFilter::setLevel ( const char *  name,
LogLevel  level 
)

Sets the log level for the component specified by name.

◆ toBoostFilter()

boost::log::filter catapult::utils::LogFilter::toBoostFilter ( ) const

Creates an equivalent boost log filter.

Here is the caller graph for this function:

Member Data Documentation

◆ m_pImpl

std::unique_ptr<Impl> catapult::utils::LogFilter::m_pImpl
private

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