CatapultServer  v0.5.0.1 (Elephant)
catapult::utils::StackLogger Class Reference

Simple RAII class that logs scope messages. More...

Collaboration diagram for catapult::utils::StackLogger:

Public Member Functions

 StackLogger (const char *message, LogLevel level)
 Constructs a logger with a message and log level. More...
 
 ~StackLogger ()
 Destructor. More...
 

Private Attributes

const char * m_message
 
LogLevel m_level
 
StackTimer m_timer
 

Detailed Description

Simple RAII class that logs scope messages.

Constructor & Destructor Documentation

◆ StackLogger()

catapult::utils::StackLogger::StackLogger ( const char *  message,
LogLevel  level 
)
inline

Constructs a logger with a message and log level.

◆ ~StackLogger()

catapult::utils::StackLogger::~StackLogger ( )
inline

Destructor.

Here is the call graph for this function:

Member Data Documentation

◆ m_level

LogLevel catapult::utils::StackLogger::m_level
private

◆ m_message

const char* catapult::utils::StackLogger::m_message
private

◆ m_timer

StackTimer catapult::utils::StackLogger::m_timer
private

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