Public Member Functions | Private Attributes

lg::logger Class Reference

#include <log.hpp>

List of all members.

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

Private Attributes

char const * name_
int severity_

Detailed Description

Definition at line 81 of file log.hpp.


Constructor & Destructor Documentation

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

Definition at line 85 of file log.hpp.


Member Function Documentation

bool lg::logger::dont_log ( log_domain const &  domain  )  const [inline]

Definition at line 89 of file log.hpp.

References lg::log_domain::domain_, and severity_.

Referenced by lg::scope_logger::scope_logger().

Here is the caller graph for this function:

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

Definition at line 127 of file log.cpp.

References lg::log_domain::domain_, lg::get_timestamp(), indent, name_, output(), severity_, and timestamp.

Here is the call graph for this function:


Member Data Documentation

char const* lg::logger::name_ [private]

Definition at line 82 of file log.hpp.

Referenced by operator()().

int lg::logger::severity_ [private]

Definition at line 83 of file log.hpp.

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


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Thu May 24 2012 01:24:44 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs