The Battle for Wesnoth  1.15.1+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)
 
std::ostream & 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 115 of file log.hpp.

Constructor & Destructor Documentation

◆ logger()

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

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

◆ operator()()

std::ostream & 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 116 of file log.hpp.

◆ severity_

int lg::logger::severity_
private

Definition at line 117 of file log.hpp.


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