The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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() (log_domain const &domain, bool show_names=true, bool do_indent=false) const
 
bool dont_log (log_domain const &domain) const
 
int get_severity () const
 
std::string get_name () const
 

Private Attributes

char const * name_
 
int severity_
 

Detailed Description

Definition at line 114 of file log.hpp.

Constructor & Destructor Documentation

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

Definition at line 118 of file log.hpp.

Member Function Documentation

bool lg::logger::dont_log ( log_domain const &  domain) const
inline
std::string lg::logger::get_name ( ) const
inline

Definition at line 132 of file log.hpp.

References name_.

int lg::logger::get_severity ( ) const
inline
std::ostream & lg::logger::operator() ( log_domain const &  domain,
bool  show_names = true,
bool  do_indent = false 
) const

Member Data Documentation

char const* lg::logger::name_
private

Definition at line 115 of file log.hpp.

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

int lg::logger::severity_
private

Definition at line 116 of file log.hpp.

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


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