log.hpp File Reference

#include <iosfwd>
#include <iostream>
#include <string>
#include <vector>

Include dependency graph for log.hpp:

Go to the source code of this file.

Namespaces

namespace  lg

Classes

struct  lg::logd
class  lg::log_domain
class  lg::logger
class  lg::scope_logger

Defines

#define log_scope(a)   lg::scope_logger scope_logging_object__(lg::general, a);
#define log_scope2(a, b)   lg::scope_logger scope_logging_object__(lg::a, b);
#define LOG_STREAM(a, b)   if (lg::a.dont_log(lg::b)) ; else lg::a(lg::b)
#define LOG_STREAM_INDENT(a, b)   if (lg::a.dont_log(lg::b)) ; else lg::a(lg::b, true, true)

Functions

bool lg::set_log_domain_severity (std::string const &name, int severity)
std::string lg::list_logdomains ()
void lg::timestamps (bool t)
std::string lg::get_timestamp (const time_t &t, const std::string &format)


Detailed Description

Definition in file log.hpp.


Define Documentation

#define log_scope ( a   )     lg::scope_logger scope_logging_object__(lg::general, a);

#define log_scope2 ( a,
b   )     lg::scope_logger scope_logging_object__(lg::a, b);

#define LOG_STREAM ( a,
b   )     if (lg::a.dont_log(lg::b)) ; else lg::a(lg::b)

#define LOG_STREAM_INDENT ( a,
b   )     if (lg::a.dont_log(lg::b)) ; else lg::a(lg::b, true, true)

Definition at line 116 of file log.hpp.

Referenced by gui2::tformula< T >::operator()().


Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs