lg Namespace Reference


Classes

struct  logd
class  log_domain
class  logger
class  scope_logger

Functions

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

Variables

std::vector< lg::logdlog_domains
logger err ("error", 0)
logger warn ("warning", 1)
logger info ("info", 2)
logger debug ("debug", 3)
log_domain general ("general")
log_domain ai ("ai")
log_domain config ("config")
log_domain display ("display")
log_domain engine ("engine")
log_domain network ("network")
log_domain mp_server ("server")
log_domain filesystem ("filesystem")
log_domain audio ("audio")
log_domain notifs ("notifs")
log_domain replay ("replay")
log_domain help ("help")
log_domain gui ("gui")
log_domain gui_parse ("gui_parse")
log_domain gui_draw ("gui_draw")
log_domain gui_event ("gui_event")
std::stringstream wml_error
 Use this logger to send errors due to deprecated WML.


Function Documentation

std::string lg::get_timestamp ( const time_t &  t,
const std::string &  format 
)

Definition at line 97 of file log.cpp.

References buf.

Referenced by lg::scope_logger::do_log_exit(), preferences::get_chat_timestamp(), and lg::logger::operator()().

std::string lg::list_logdomains (  ) 

Definition at line 82 of file log.cpp.

References log_domains.

Referenced by main(), and play_game().

bool lg::set_log_domain_severity ( std::string const &  name,
int  severity 
)

Definition at line 64 of file log.cpp.

References log_domains.

Referenced by events::chat_handler::change_logging(), main(), and play_game().

void lg::timestamps ( bool  t  ) 

Definition at line 49 of file log.cpp.

References timestamp.

Referenced by main().


Variable Documentation

Definition at line 68 of file log.hpp.

Referenced by ai::get_villages().

log_domain lg::audio ( "audio"   ) 

Definition at line 68 of file log.hpp.

Definition at line 68 of file log.hpp.

log_domain lg::filesystem ( "filesystem"   ) 

Definition at line 68 of file log.hpp.

Definition at line 68 of file log.hpp.

Referenced by get_locale().

log_domain lg::gui_draw ( "gui_draw"   ) 

log_domain lg::gui_event ( "gui_event"   ) 

Definition at line 68 of file log.hpp.

log_domain lg::gui_parse ( "gui_parse"   ) 

Definition at line 68 of file log.hpp.

Referenced by gui2::tcanvas::parse_cfg(), and gui2::tbuilder_grid::tbuilder_grid().

logger lg::info ( "info"  ,
 
)

std::vector< logd > lg::log_domains

Definition at line 68 of file log.hpp.

Definition at line 68 of file log.hpp.

Referenced by turn_info::process_network_data().

Definition at line 68 of file log.hpp.

Definition at line 68 of file log.hpp.

Referenced by mp::level_to_gamestate().

std::stringstream lg::wml_error

Use this logger to send errors due to deprecated WML.

The preferred format is: xxx is deprecated, support will be removed in version X. or xxx is deprecated, support has been removed in version X.

After every wml-event the errors are shown to the user, so they can inform the campaign maintainer.

Definition at line 150 of file log.cpp.

Referenced by events::mouse_handler::attack_enemy(), game_events::conditional_passed(), ai::play_turn(), show_wml_errors(), and t_translation::string_to_number_().


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