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

#include <log.hpp>

Public Member Functions

 logger (char const *name, int severity)
 
log_in_progress operator() (const log_domain &domain, bool show_names=true, bool do_indent=false) const
 
bool dont_log (const log_domain &domain) const
 
int get_severity () const
 Returns following values depending on the logger: error: 0 warn: 1 info: 2 debug: 3 See also the lg::severity enum. More...
 
std::string get_name () const
 

Private Attributes

char const * name_
 
int severity_
 

Detailed Description

Definition at line 140 of file log.hpp.

Constructor & Destructor Documentation

◆ logger()

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

Definition at line 144 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

◆ get_severity()

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

Returns following values depending on the logger: error: 0 warn: 1 info: 2 debug: 3 See also the lg::severity enum.

Definition at line 161 of file log.hpp.

Referenced by events::chat_handler::change_logging(), campaignd::command_line::command_line(), commandline_options::commandline_options(), campaignd::server::handle_read_from_fifo(), main(), lg::set_log_domain_severity(), and lg::set_strict_severity().

◆ operator()()

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

Member Data Documentation

◆ name_

char const* lg::logger::name_
private

Definition at line 141 of file log.hpp.

◆ severity_

int lg::logger::severity_
private

Definition at line 142 of file log.hpp.


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