The Battle for Wesnoth  1.15.1+dev
Public Member Functions | Private Member Functions | Private Attributes | List of all members
lg::scope_logger Class Reference

#include <log.hpp>

Public Member Functions

 scope_logger (const log_domain &domain, const char *str)
 
 scope_logger (const log_domain &domain, const std::string &str)
 
 ~scope_logger ()
 
void do_indent () const
 

Private Member Functions

void do_log_entry (const log_domain &domain, const std::string &str) noexcept
 
void do_log_exit () noexcept
 

Private Attributes

ptime ticks_
 
std::ostream * output_
 
std::string str_
 

Detailed Description

Definition at line 147 of file log.hpp.

Constructor & Destructor Documentation

◆ scope_logger() [1/2]

lg::scope_logger::scope_logger ( const log_domain domain,
const char *  str 
)
inline

Definition at line 153 of file log.hpp.

References lg::debug().

◆ scope_logger() [2/2]

lg::scope_logger::scope_logger ( const log_domain domain,
const std::string &  str 
)
inline

Definition at line 158 of file log.hpp.

References lg::debug().

◆ ~scope_logger()

lg::scope_logger::~scope_logger ( )
inline

Definition at line 163 of file log.hpp.

References lg::wml_error().

Member Function Documentation

◆ do_indent()

void lg::scope_logger::do_indent ( ) const

Definition at line 263 of file log.cpp.

References i, and indent.

◆ do_log_entry()

void lg::scope_logger::do_log_entry ( const log_domain domain,
const std::string &  str 
)
privatenoexcept

Definition at line 240 of file log.cpp.

References lg::debug(), and indent.

◆ do_log_exit()

void lg::scope_logger::do_log_exit ( )
privatenoexcept

Definition at line 251 of file log.cpp.

References lg::get_timestamp(), indent, and timestamp.

Member Data Documentation

◆ output_

std::ostream* lg::scope_logger::output_
private

Definition at line 150 of file log.hpp.

◆ str_

std::string lg::scope_logger::str_
private

Definition at line 151 of file log.hpp.

◆ ticks_

ptime lg::scope_logger::ticks_
private

Definition at line 149 of file log.hpp.


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