The Battle for Wesnoth  1.15.12+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
std::string get_name () const

Private Attributes

char const * name_
int severity_

Detailed Description

Definition at line 132 of file log.hpp.

Constructor & Destructor Documentation

◆ logger()

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

Definition at line 136 of file log.hpp.

Member Function Documentation

◆ dont_log()

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

◆ get_name()

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

◆ get_severity()

int lg::logger::get_severity ( ) const

◆ 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_

Definition at line 133 of file log.hpp.

◆ severity_

int lg::logger::severity_

Definition at line 134 of file log.hpp.

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