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

#include <log.hpp>

Public Member Functions

 logger (char const *name, severity severity)
 
log_in_progress operator() (const log_domain &domain, bool show_names=true, bool do_indent=false, bool show_timestamps=true, bool break_strict=true, bool auto_newline=true) const
 
bool dont_log (const log_domain &domain) const
 
severity get_severity () const
 
std::string get_name () const
 

Private Attributes

char const * name_
 
severity severity_
 

Detailed Description

Definition at line 207 of file log.hpp.

Constructor & Destructor Documentation

◆ logger()

lg::logger::logger ( char const *  name,
severity  severity 
)
inline

Definition at line 211 of file log.hpp.

Member Function Documentation

◆ dont_log()

bool lg::logger::dont_log ( const log_domain domain) const
inline

◆ get_name()

std::string lg::logger::get_name ( ) const
inline

Definition at line 225 of file log.hpp.

References name_.

◆ get_severity()

severity lg::logger::get_severity ( ) const
inline

◆ operator()()

log_in_progress lg::logger::operator() ( const log_domain domain,
bool  show_names = true,
bool  do_indent = false,
bool  show_timestamps = true,
bool  break_strict = true,
bool  auto_newline = true 
) const

Member Data Documentation

◆ name_

char const* lg::logger::name_
private

Definition at line 208 of file log.hpp.

Referenced by get_name(), and operator()().

◆ severity_

severity lg::logger::severity_
private

Definition at line 209 of file log.hpp.

Referenced by dont_log(), get_severity(), and operator()().


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