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::logd > | log_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. |
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 | ) |
log_domain lg::audio | ( | "audio" | ) |
Definition at line 68 of file log.hpp.
Referenced by unit_type::add_advancement(), game_events::add_events(), unit::backup_state(), replay::clear(), enter_connect_mode(), enter_create_mode(), enter_lobby_mode(), unit_animation::fill_initial_animations(), unit_type_data::unit_type_map_wrapper::find(), increment_config_usage(), play_controller::init(), play_game(), play_replay(), mp::connect::process_network_connection(), turn_info::process_network_data(), mp::ui::process_network_data(), random_generate_scenario(), replay::save_game(), unit_type_data::unit_type_map_wrapper::set_config(), and mp::connect::start_game().
Definition at line 67 of file log.hpp.
Referenced by lg::scope_logger::do_log_entry(), ai::get_villages(), and lg::scope_logger::scope_logger().
Definition at line 68 of file log.hpp.
Referenced by game_display::add_chat_message(), unit::add_modification(), dialogs::advance_unit(), attack::attack(), dialogs::campaign_preview_pane::draw_contents(), draw_tip_of_day(), unit::generate_traits(), game_state::get_player(), terrain_builder::parse_config(), unit::read(), show_intro_part(), and unit::type().
Definition at line 67 of file log.hpp.
Referenced by game_display::add_chat_message(), unit::add_modification(), dialogs::advance_unit(), ai_interface::attack_enemy(), unit_type::build_full(), mp::check_response(), create_ai(), unit_movement_type::defense_modifier(), unit::defense_modifier(), dialogs::campaign_preview_pane::draw_contents(), draw_tip_of_day(), play_controller::enter_textbox(), unit::generate_traits(), cutter::load_config(), main(), ai_interface::move_unit_partial(), unit_movement_type::movement_cost(), unit::movement_cost_internal(), turn_info::process_network_data(), unit::read(), read_save_file(), events::menu_handler::recall(), theme::set_resolution(), show_intro_part(), gui::floating_textbox::tab(), and unit::type().
log_domain lg::filesystem | ( | "filesystem" | ) |
Definition at line 68 of file log.hpp.
Referenced by gui2::tbuilder_grid::build(), gui2::tbuilder_panel::build(), gui2::build(), main(), and gui2::tgrid::set_size().
log_domain lg::gui_draw | ( | "gui_draw" | ) |
Definition at line 68 of file log.hpp.
Referenced by gui2::twindow::draw(), gui2::tgrid::draw(), gui2::tcanvas::draw(), gui2::tformula< T >::operator()(), and gui2::twindow::show().
log_domain lg::gui_event | ( | "gui_event" | ) |
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().
Definition at line 68 of file log.hpp.
Referenced by gui::menu::process_help_string(), events::console_handler::register_command(), and events::map_command_handler< events::console_handler >::register_command().
Definition at line 67 of file log.hpp.
Referenced by unit_type::add_advancement(), advance_unit(), network::disconnect(), events::menu_handler::do_ai_formula(), unit_type_data::unit_type_map_wrapper::find(), game_display::game_display(), get_locale(), is_directory_internal(), help::unit_topic_generator::operator()(), playsingle_controller::play_scenario(), server::process_data_game(), turn_info::process_network_data(), events::pump(), network::send_data(), network::send_raw_data(), unit_type_data::unit_type_map_wrapper::set_config(), game::update_side_data(), and dfool::evaluator::value().
std::vector< logd > lg::log_domains |
Definition at line 48 of file log.cpp.
Referenced by lg::logger::dont_log(), list_logdomains(), lg::log_domain::log_domain(), lg::logger::operator()(), and set_log_domain_severity().
Definition at line 67 of file log.hpp.
Referenced by unit_type::add_advancement(), help::help_text_area::add_img_item(), ai::do_combat(), game_state::get_player(), events::mouse_handler::mouse_press(), ai::move_to_targets(), and terrain_builder::parse_config().
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 |