NetSurf
Macros | Typedefs | Enumerations | Functions | Variables
log.h File Reference
#include <stdio.h>
#include <stdbool.h>
#include "utils/errors.h"
Include dependency graph for log.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define NETSURF_LOG_LEVEL   INFO
 
#define NSLOG_LVL(level)   NSLOG_LEVEL_ ## level
 
#define NSLOG_EVL(level)   NSLOG_LVL(level)
 
#define NSLOG_COMPILED_MIN_LEVEL   NSLOG_EVL(NETSURF_LOG_LEVEL)
 
#define LOG_FN   ""
 
#define LOG_LN   __LINE__
 
#define NSLOG(catname, level, logmsg, args...)
 

Typedefs

typedef bool() nslog_ensure_t(FILE *fptr)
 Ensures the FILE handle is available to write logging to. More...
 

Enumerations

enum  nslog_level {
  NSLOG_LEVEL_DEEPDEBUG = 0, NSLOG_LEVEL_DEBUG = 1, NSLOG_LEVEL_VERBOSE = 2, NSLOG_LEVEL_INFO = 3,
  NSLOG_LEVEL_WARNING = 4, NSLOG_LEVEL_ERROR = 5, NSLOG_LEVEL_CRITICAL = 6
}
 

Functions

nserror nslog_init (nslog_ensure_t *ensure, int *pargc, char **argv)
 Initialise the logging system. More...
 
void nslog_finalise (void)
 Shut down the logging system. More...
 
nserror nslog_set_filter (const char *filter)
 Set the logging filter. More...
 
nserror nslog_set_filter_by_options (void)
 Set the logging filter according to the options. More...
 
void nslog_log (const char *file, const char *func, int ln, const char *format,...) __attribute__((format(printf
 

Variables

bool verbose_log
 flag to enable verbose logging More...
 

Macro Definition Documentation

◆ LOG_FN

#define LOG_FN   ""

Definition at line 110 of file log.h.

◆ LOG_LN

#define LOG_LN   __LINE__

Definition at line 111 of file log.h.

◆ NETSURF_LOG_LEVEL

#define NETSURF_LOG_LEVEL   INFO

Definition at line 69 of file log.h.

◆ NSLOG

#define NSLOG (   catname,
  level,
  logmsg,
  args... 
)
Value:
do { \
if (NSLOG_LEVEL_##level >= NSLOG_COMPILED_MIN_LEVEL) { \
nslog_log(__FILE__, LOG_FN, LOG_LN, logmsg , ##args); \
} \
} while(0)
#define LOG_LN
Definition: log.h:111
#define LOG_FN
Definition: log.h:110
enum log_level level
Definition: convert_font.c:79
#define NSLOG_COMPILED_MIN_LEVEL
Definition: log.h:74

Definition at line 114 of file log.h.

Referenced by ami_arc(), ami_arexx_execute(), ami_bitmap(), ami_bitmap_get_generic(), ami_bitmap_tile(), ami_cert_verify(), ami_clip(), ami_cookies_present(), ami_cw_redraw(), ami_cw_redraw_queue(), ami_disc(), ami_font_bm_open(), ami_font_cache_cleanup(), ami_font_cache_fini(), ami_font_cache_locate(), ami_font_open(), ami_font_scan_font(), ami_font_scan_fonts(), ami_font_scan_init(), ami_font_scan_list(), ami_font_scan_load(), ami_font_scan_save(), ami_font_setdevicedpi(), ami_get_msg(), ami_gui_check_resource(), ami_gui_close_screen(), ami_gui_commandline(), ami_gui_get_cache_favicon_name(), ami_gui_get_user_dir(), ami_gui_map_filename(), ami_gui_menu_number(), ami_gui_splash_close(), ami_gui_splash_open(), ami_gui_window_update_box_deferred(), ami_gui_window_update_box_deferred_check(), ami_handle_applib(), ami_history_global_present(), ami_history_local_present(), ami_hotlist_present(), ami_line(), ami_memory_low_mem_handler(), ami_memory_slab_alloc_cb(), ami_memory_slab_usage_cb(), ami_menu_calc_item_width(), ami_mime_dump(), ami_mime_init(), ami_misc_req(), ami_openscreen(), ami_path(), ami_plot_obtain_pen(), ami_plot_ra_alloc(), ami_polygon(), ami_rectangle(), ami_schedule_dump(), ami_text(), amiga_bitmap_get_buffer(), amiga_bitmap_unmap_buffer(), amiga_plugin_hack_clone(), amiga_plugin_hack_close(), amiga_plugin_hack_convert(), amiga_plugin_hack_destroy(), amiga_plugin_hack_execute(), amiga_plugin_hack_init(), amiga_plugin_hack_open(), amiga_plugin_hack_redraw(), amiga_plugin_hack_reformat(), amiga_window_invalidate_area(), arc(), atari_bitmap_create_ex(), atari_bitmap_destroy(), atari_bitmap_get_height(), atari_bitmap_get_opaque(), atari_bitmap_get_rowstride(), atari_bitmap_get_width(), atari_cookie_manager_destroy(), atari_cookie_manager_finish(), atari_cookie_manager_init(), atari_cookie_manager_init_phase2(), atari_cookie_manager_keypress(), atari_find_resource(), atari_global_history_destroy(), atari_global_history_finish(), atari_global_history_init(), atari_global_history_init_phase2(), atari_global_history_keypress(), atari_global_history_mouse_action(), atari_hotlist_add_page(), atari_hotlist_destroy(), atari_hotlist_finish(), atari_hotlist_init(), atari_hotlist_init_phase2(), atari_hotlist_keypress(), atari_hotlist_mouse_action(), atari_poll(), atari_schedule(), atari_sslcert_viewer_destroy(), atari_sslcert_viewer_finish(), atari_sslcert_viewer_init(), atari_sslcert_viewer_init_phase2(), atari_sslcert_viewer_keypress(), atari_treeview_create(), beos_font_position(), beos_font_split(), beos_schedule(), beos_warn_user(), bitmap(), bitmap_create(), bitmap_get_buffer(), bitmap_get_height(), bitmap_get_opaque(), bitmap_get_rowstride(), bitmap_get_width(), bitmap_render(), bitmap_set_opaque(), bitmap_test_opaque(), box_frameset(), box_handle_scrollbars(), box_normalise_block(), box_normalise_inline_container(), box_normalise_table(), box_normalise_table_row(), box_normalise_table_row_group(), box_textarea_callback(), browser_mouse_state_dump(), browser_window_callback(), browser_window_console_log(), browser_window_create_frameset(), browser_window_destroy_internal(), browser_window_download(), browser_window_exec(), browser_window_favicon_callback(), browser_window_history_add(), browser_window_history_clone(), browser_window_history_update(), browser_window_navigate(), browser_window_redraw(), browser_window_redraw_ready(), browser_window_set_dimensions(), browser_window_set_position(), browser_window_update_favicon(), build_entrymap(), build_exec_argv(), cert_attach_pane(), cert_info_draw(), check_homedir(), clip(), close_settings(), comboboxLanguage_add_from_file(), content__init(), content_abort(), content_add_user(), content_broadcast(), content_close(), content_convert(), content_destroy(), content_exec(), content_open(), content_remove_user(), content_scaled_redraw(), context_popup(), convert_script_async_cb(), convert_script_defer_cb(), convert_script_sync_cb(), cookie_manager_delete_entry(), cookie_manager_fini(), cookie_manager_init(), create_cache_home(), create_config_home(), create_normal_browser_window(), create_toolbar(), cw_tb_size(), default_ico_callback(), destroy_about_dialog(), die(), disc(), do_popup(), do_redraw(), dom_default_action_DOMNodeInserted_cb(), dom_event_fetcher(), dom_SCRIPT_showed_up(), download_ro_filetype(), dukky_create_object(), dukky_dump_error(), dukky_generic_event_handler(), dukky_get_current_value_of_event_handler(), dukky_log_stack_frame(), dukky_populate_object(), dukky_push_node(), dukky_push_node_klass(), dukky_push_node_stacked(), dukky_register_event_listener_for(), dump_rings(), entry_release_alloc(), exec_src_script(), fb_browser_window_click(), fb_browser_window_input(), fb_browser_window_redraw(), fb_font_init(), fb_new_face(), fb_pan(), fb_warn_user(), fbtk_click(), fbtk_get_root_widget(), fbtk_input(), fbtk_request_redraw(), fbtk_set_mapping(), fbtk_widget_new(), fetch(), fetch_abort(), fetch_curl_abort(), fetch_curl_done(), fetch_curl_finalise(), fetch_curl_header(), fetch_curl_initialise(), fetch_curl_poll(), fetch_curl_post_convert(), fetch_curl_process_headers(), fetch_curl_register(), fetch_curl_setup(), fetch_curl_stop(), fetch_data_finalise(), fetch_data_initialise(), fetch_data_list_add(), fetch_data_list_add_sname(), fetch_data_poll(), fetch_data_process(), fetch_dispatch_job(), fetch_dispatch_jobs(), fetch_fdset(), fetch_filetype(), fetch_free(), fetch_mimetype(), fetch_multipart_data_destroy(), fetch_remove_from_queues(), fetch_resource_initialise(), fetch_rsrc_finalise(), fetch_rsrc_initialise(), fetch_rsrc_poll(), fetch_rsrc_process(), fetch_set_http_code(), fetch_start(), fetcher_poll(), fetcher_quit(), filename_create_directory(), filename_delete_recursive(), filename_flush_directory(), filename_initialise(), filename_request(), finalise(), find_resource_from_name(), find_sides(), fire_dom_event(), form_dom_to_data(), form_dom_to_data_button(), form_dom_to_data_input(), form_dom_to_data_input_checkbox(), form_dom_to_data_input_file(), form_dom_to_data_input_image(), form_dom_to_data_input_submit(), form_dom_to_data_input_text(), form_dom_to_data_select(), form_dom_to_data_select_option(), form_dom_to_data_textarea(), form_free_control(), framebuffer_format_from_bpp(), framebuffer_initialise(), framebuffer_plot_path(), framebuffer_resize(), framebuffer_schedule(), ft_face_requester(), gemdos_realpath(), get_cache_home(), get_cachepath(), get_config_home(), get_imagelist(), get_login_description(), get_store_entry(), get_window_dpi(), global_history_add(), global_history_fini(), global_history_init(), global_history_initialise_time(), gtk_cert_verify(), gtk_fetch_filetype_init(), gtk_print_signal_begin_print(), gtk_print_signal_draw_page(), gtk_print_signal_end_print(), gui_401login_open(), gui_cert_verify(), gui_download_window_create(), gui_download_window_data(), gui_download_window_destroy(), gui_download_window_done(), gui_download_window_error(), gui_drag_save_object(), gui_drag_save_selection(), gui_file_gadget_open(), gui_get_clipboard(), gui_get_resource_url(), gui_init(), gui_quit(), gui_search_web_provider_update(), gui_set_clipboard(), gui_set_input_gui_window(), gui_start_selection(), gui_window_create(), gui_window_create_form_select_menu(), gui_window_destroy(), gui_window_drag_start(), gui_window_file_gadget_open(), gui_window_get_scroll(), gui_window_place_caret(), gui_window_remove_caret(), gui_window_scroll_start(), gui_window_set_extent(), gui_window_set_icon(), gui_window_set_pointer(), gui_window_set_scroll(), gui_window_update_extent(), handle_dialog_message(), handle_event(), hash_add(), hash_add_file(), hash_add_inline_gzip(), hash_add_inline_plain(), hash_create(), hlcache_content_callback(), hlcache_finalise(), HOOKF(), hotlist_fini(), hotlist_init(), hotlist_load(), hotlist_load_directory_cb(), hotlist_load_entry(), hotlist_save(), hscroll_redraw(), hscrolll_click(), html__dom_user_data_handler(), html__image_coords_dom_user_data_handler(), html__set_file_gadget_filename(), html_begin_conversion(), html_box_convert_done(), html_convert(), html_convert_css_callback(), html_create_html_data(), html_css_fetcher_finalise(), html_css_fetcher_initialise(), html_css_fetcher_poll(), html_css_fetcher_register(), html_css_new_stylesheets(), html_css_process_link(), html_css_process_modified_style(), html_css_quirks_stylesheets(), html_css_update_style(), html_debug_dump(), html_destroy(), html_document_user_data_handler(), html_drop_file_at_point(), html_exec(), html_fetch_object(), html_finish_conversion(), html_object_abort_objects(), html_object_callback(), html_object_free_objects(), html_process_script(), html_replace_object(), html_stop(), html_stylesheet_from_domnode(), idna__is_valid(), idna__verify(), idna_encode(), image_cache__background_update(), image_cache__free_bitmap(), image_cache__free_entry(), image_cache_add(), image_cache_destroy(), image_cache_fini(), image_cache_init(), image_cache_redraw(), image_cache_remove(), image_cache_speculate(), image_redraw_os(), image_redraw_tinct(), imagemap_dump(), info_callback(), init_about_dialog(), init_pixbuf_resource(), init_resource(), initialise(), invalidate_entry(), js_destroycontext(), js_exec(), js_fire_event(), js_newcompartment(), js_newcontext(), knockout_plot_clip(), knockout_plot_flush(), layout_absolute(), layout_block_context(), layout_block_object(), layout_compute_relative_offset(), layout_document(), layout_inline_container(), layout_line(), layout_minmax_line(), layout_minmax_table(), layout_table(), layout_text_box_split(), line(), list_schedule(), llcache_clean(), llcache_fetch_callback(), llcache_fetch_header_cache_control(), llcache_fetch_redirect(), llcache_finalise(), llcache_initialise(), llcache_object_add_user(), llcache_object_destroy(), llcache_object_fetch(), llcache_object_is_fresh(), llcache_object_new(), llcache_object_notify_users(), llcache_object_refetch(), llcache_object_remove_user(), llcache_object_retrieve(), llcache_object_retrieve_from_cache(), llcache_object_rfc2616_remaining_lifetime(), llcache_object_user_destroy(), llcache_object_user_new(), llcache_persist(), llcache_persist_slowcheck(), llcache_process_metadata(), llcache_serialise_metadata(), local_file_to_url(), login_dialog_cancel(), login_dialog_ok(), main(), menu_add_bookmark(), menu_back(), menu_bookmarks(), menu_choices(), menu_close_win(), menu_cookies(), menu_copy(), menu_debug_render(), menu_find(), menu_forward(), menu_ghistory(), menu_help_content(), menu_home(), menu_lhistory(), menu_new_win(), menu_open_file(), menu_open_url(), menu_paste(), menu_quit(), menu_reload(), menu_save_page(), menu_savewin(), menu_stop(), menu_toolbars(), menu_vlog(), messages_add_from_file(), messages_add_from_inline(), messages_load_ctx(), monkey_fetch_filetype_init(), monkey_register_handler(), monkey_run(), monkey_schedule(), monkey_schedule_list(), monkey_schedule_run(), monkey_window_handle_redraw(), MULTIHANDLER(), netsurf__handle_login(), netsurf_exit(), netsurf_init(), netsurf_lwc_iterator(), node_presentational_hint(), nsatari_search_add_recent(), nsatari_search_session_destroy(), nsatari_search_set_back_state(), nsatari_search_set_forward_state(), nsatari_search_set_hourglass(), nsatari_search_set_status(), nsbeos_attach_toplevel_view(), nsbeos_bitmap_get_pretile_x(), nsbeos_bitmap_get_pretile_xy(), nsbeos_bitmap_get_pretile_y(), nsbeos_dispatch_event(), nsbeos_gui_poll(), nsbeos_new_scaffolding(), nsbeos_plot_path(), nsbeos_scaffolding_destroy(), nsbeos_scaffolding_dispatch_event(), nsbeos_schedule_kill_callback(), nsbeos_throbber_initialise_from_png(), nsbeos_window_destroy_event(), nsbeos_window_keypress_event(), nscss_convert_css_data(), nscss_create_inline_style(), nscss_dom_user_data_handler(), nscss_handle_import(), nscss_import(), nscss_import_complete(), nsfont_check_fonts(), nsfont_fallback_font(), nsfont_init(), nsfont_paint(), nsfont_pango_check(), nsfont_width(), nsgdk_pixbuf_get_from_surface(), nsgdk_pixbuf_new_from_resname(), nsgtk_accelerator_init(), nsgtk_builder_new_from_resname(), nsgtk_cookies_init(), nsgtk_cookies_init_menu(), nsgtk_cw_keypress_event(), nsgtk_download_init(), nsgtk_global_history_init(), nsgtk_global_history_init_menu(), nsgtk_hotlist_init(), nsgtk_hotlist_init_menu(), nsgtk_init(), nsgtk_local_history_init(), nsgtk_new_scaffolding(), nsgtk_pdf_password(), nsgtk_plot_path(), nsgtk_preferences(), nsgtk_preferences_comboboxLanguage_realize(), nsgtk_print_plot_clip(), nsgtk_print_plot_polygon(), nsgtk_print_plot_rectangle(), nsgtk_schedule_generic_callback(), nsgtk_schedule_kill_callback(), nsgtk_tab_switch_page_after(), nsgtk_throbber_init(), nsgtk_toolbar_customization_save(), nsgtk_toolbar_window_open(), nsgtk_warning(), nsgtk_window_scroll_event(), nsico_convert(), nsico_get_internal(), nsico_redraw(), nsjpeg_error_exit(), nsjpeg_error_log(), nslog_finalise(), nslog_init(), nsoption_commandline(), nsoption_read(), nsoption_write(), nspng_create_png_data(), nspng_error(), nspng_process_data(), nspng_warning(), nsw32_cert_verify(), nsw32_corewindow_hscroll(), nsw32_corewindow_init(), nsw32_corewindow_vscroll(), nsw32_cw_update_size(), nsw32_del_dialog(), nsw32_window_ssl_cert_command(), nsws_about_event_callback(), nsws_drawable_hscroll(), nsws_drawable_mousedown(), nsws_drawable_mousemove(), nsws_drawable_mouseup(), nsws_drawable_vscroll(), nsws_find_resource(), nsws_window_command(), nsws_window_create(), nsws_window_create_drawable(), nsws_window_drawable_event_callback(), nsws_window_event_callback(), nsws_window_toolbar_command(), nsws_window_urlbar_callback(), nsws_window_urlbar_create(), on_file_dropped(), OpenOutlineFont(), options_appearance_dialog_handler(), path(), place_float_below(), plot_alpha_bitmap(), plot_bitmap(), plot_block(), plot_init(), polygon(), print_apply_settings(), print_declare_fonts(), print_document(), print_fonts_plot_text(), print_send_printsave(), print_send_printtypeknown(), process_cmdline(), process_line(), punycode_status_to_nserror(), query_user_xy(), read_blocks(), read_control(), read_entries(), read_locales(), rectangle(), regcomp_wrapper(), register_menu_str(), release(), riscos_bitmap_overlay_sprite(), riscos_bitmap_render(), riscos_bitmap_save(), riscos_schedule(), ro_cw_drag_end(), ro_cw_drag_start(), ro_cw_get_window_dimensions(), ro_cw_invalidate(), ro_cw_keypress(), ro_cw_mouse_at(), ro_cw_mouse_click(), ro_cw_pointer_leaving(), ro_cw_redraw(), ro_cw_scroll(), ro_cw_update_size(), ro_filetype_from_unix_path(), ro_font_position(), ro_font_split(), ro_font_width(), ro_gui_401login_close(), ro_gui_buffer_open(), ro_gui_button_bar_click(), ro_gui_button_bar_create(), ro_gui_button_bar_drag_end(), ro_gui_button_bar_get_config(), ro_gui_button_bar_icon_resize(), ro_gui_button_bar_icon_update(), ro_gui_cert_release_window(), ro_gui_check_resolvers(), ro_gui_configure_open_window(), ro_gui_configure_register(), ro_gui_configure_translate(), ro_gui_cookies_present(), ro_gui_default_language(), ro_gui_dialog_add_persistent(), ro_gui_dialog_close(), ro_gui_dialog_close_persistent(), ro_gui_dialog_create(), ro_gui_dialog_load_template(), ro_gui_dialog_open(), ro_gui_dialog_open_at_pointer(), ro_gui_dialog_open_centre_parent(), ro_gui_dialog_open_url_init(), ro_gui_dialog_open_xy(), ro_gui_download_canonicalise(), ro_gui_download_check_space(), ro_gui_download_click(), ro_gui_download_drag_end(), ro_gui_download_move(), ro_gui_download_save(), ro_gui_download_send_dataload(), ro_gui_download_update_status(), ro_gui_download_window_destroy(), ro_gui_download_window_hide_caret(), ro_gui_drag_box_cancel(), ro_gui_drag_icon(), ro_gui_drag_save_link(), ro_gui_dump_browser_window(), ro_gui_force_redraw_icon(), ro_gui_get_icon_selected_state(), ro_gui_get_icon_string(), ro_gui_get_screen_properties(), ro_gui_global_history_present(), ro_gui_hotlist_present(), ro_gui_iconbar_initialise(), ro_gui_iconbar_menu_select(), ro_gui_ieurl_file_parse(), ro_gui_interactive_help_available(), ro_gui_interactive_help_broadcast(), ro_gui_interactive_help_request(), ro_gui_interactive_help_start(), ro_gui_keypress(), ro_gui_keypress_cb(), ro_gui_load_sprite_file(), ro_gui_local_history_present(), ro_gui_menu_create(), ro_gui_menu_destroy(), ro_gui_menu_get_checksum(), ro_gui_menu_refresh(), ro_gui_menu_selection(), ro_gui_menu_translate(), ro_gui_menu_warning(), ro_gui_open_window_request(), ro_gui_options_image_redraw(), ro_gui_options_language_ok(), ro_gui_options_theme_finalise(), ro_gui_options_theme_initialise(), ro_gui_options_theme_load(), ro_gui_popup_menu(), ro_gui_print_prepare(), ro_gui_progress_bar_animate(), ro_gui_progress_bar_create(), ro_gui_progress_bar_destroy(), ro_gui_progress_bar_redraw(), ro_gui_progress_bar_redraw_window(), ro_gui_progress_bar_update(), ro_gui_query_close(), ro_gui_query_window_bring_to_front(), ro_gui_save_clipboard(), ro_gui_save_complete(), ro_gui_save_content(), ro_gui_save_create_thumbnail(), ro_gui_save_datasave_ack(), ro_gui_save_done(), ro_gui_save_drag_end(), ro_gui_save_object_native(), ro_gui_save_set_file_type(), ro_gui_save_set_state(), ro_gui_saveas_create(), ro_gui_saveas_quit(), ro_gui_scroll(), ro_gui_selection_claim_entity(), ro_gui_selection_drag_end(), ro_gui_selection_send_dragging(), ro_gui_set_caret_first(), ro_gui_set_icon_button_type(), ro_gui_set_icon_deleted_state(), ro_gui_set_icon_selected_state(), ro_gui_set_icon_shaded_state(), ro_gui_set_icon_sprite(), ro_gui_set_icon_string(), ro_gui_set_window_title(), ro_gui_signal(), ro_gui_status_bar_click(), ro_gui_status_bar_create(), ro_gui_status_bar_destroy(), ro_gui_status_bar_open(), ro_gui_status_bar_redraw(), ro_gui_status_bar_resize(), ro_gui_status_bar_set_progress_range(), ro_gui_status_bar_set_visible(), ro_gui_status_position_progress_bar(), ro_gui_theme_add_descriptor(), ro_gui_theme_get_available_in_dir(), ro_gui_theme_install_apply(), ro_gui_theme_open(), ro_gui_throbber_create(), ro_gui_throbber_icon_resize(), ro_gui_throbber_icon_update(), ro_gui_toolbar_dataload(), ro_gui_uri_file_parse(), ro_gui_url_bar_create(), ro_gui_url_bar_get_url_extent(), ro_gui_url_bar_icon_resize(), ro_gui_url_bar_icon_update(), ro_gui_url_bar_set_url(), ro_gui_url_bar_take_caret(), ro_gui_url_complete_click(), ro_gui_url_complete_close(), ro_gui_url_complete_keypress(), ro_gui_url_complete_redraw(), ro_gui_url_complete_resize(), ro_gui_url_file_parse(), ro_gui_user_redraw(), ro_gui_view_source(), ro_gui_view_source_bounce(), ro_gui_wimp_cache_furniture_sizes(), ro_gui_wimp_check_window_furniture(), ro_gui_wimp_desktop_font(), ro_gui_wimp_event_close_window(), ro_gui_wimp_event_deregister(), ro_gui_wimp_event_finalise(), ro_gui_wimp_event_get_window(), ro_gui_wimp_event_keypress(), ro_gui_wimp_event_memorise(), ro_gui_wimp_event_menu_selection(), ro_gui_wimp_event_mouse_click(), ro_gui_wimp_event_prepare_gright_menu(), ro_gui_wimp_event_transfer(), ro_gui_wimp_get_sprite_dimensions(), ro_gui_wimp_read_eig_factors(), ro_gui_wimp_sprite_exists(), ro_gui_wimp_update_window_furniture(), ro_gui_window_close(), ro_gui_window_dataload(), ro_gui_window_handle_local_keypress(), ro_gui_window_iconise(), ro_gui_window_import_text(), ro_gui_window_invalidate_area(), ro_gui_window_menu_select(), ro_gui_window_open(), ro_gui_window_prepare_form_select_menu(), ro_gui_window_redraw(), ro_gui_window_scroll_action(), ro_gui_window_scroll_end(), ro_gui_window_to_screen_pos(), ro_gui_window_to_window_pos(), ro_gui_window_update_boxes(), ro_local_history_open(), ro_local_history_tooltip(), ro_message_send_message(), ro_message_send_message_to_window(), ro_mouse_poll(), ro_mouse_track_start(), ro_msg_dataload(), ro_msg_dataopen(), ro_msg_datasave(), ro_msg_prequit(), ro_msg_save_desktop(), ro_path_to_nsurl(), ro_plot_arc(), ro_plot_bitmap(), ro_plot_clip(), ro_plot_disc(), ro_plot_draw_path(), ro_plot_path(), ro_plot_polygon(), ro_plot_rectangle(), ro_plot_text(), ro_print_ack(), ro_textarea_create(), ro_textarea_destroy(), ro_textarea_get_caret(), ro_textarea_get_text(), ro_textarea_insert_text(), ro_textarea_key_press(), ro_textarea_open(), ro_textarea_redraw_internal(), ro_textarea_reflow(), ro_textarea_replace_text(), ro_textarea_set_caret(), ro_textarea_set_caret_xy(), ro_textarea_set_text(), ro_textarea_update(), ro_toolbar_attach(), ro_toolbar_click(), ro_toolbar_create(), ro_toolbar_destroy(), ro_toolbar_get_help_suffix(), ro_toolbar_process(), ro_toolbar_rebuild(), ro_toolbar_redraw(), ro_uri_bounce(), ro_url_broadcast(), ro_url_load(), ro_url_message_received(), ro_warn_user(), rsvg_convert(), rsvg_create_svg_data(), rsvg_process_data(), save_as_text(), save_complete_inventory(), save_complete_node_handler(), save_complete_save_buffer(), save_complete_save_html_document(), sb_destroy(), scaffolding_window_destroy(), schedule_remove(), schedule_run(), search_web_ico_callback(), set_block_extents(), set_colour_from_wimp(), set_defaults(), set_store_entry(), slow_script(), sslcert_viewer_fini(), sslcert_viewer_init(), store(), store_evict(), store_open(), store_read_block(), store_read_file(), store_write_block(), store_write_file(), swap_siblings(), table_calculate_column_types(), text(), textarea_copy_to_undo_buffer(), textarea_create(), textarea_get_text(), textarea_insert_text(), textarea_reflow_multiline(), textarea_reflow_singleline(), textarea_replace_text_internal(), textarea_set_text(), textplain_reformat(), thumbnail_create_8bpp(), thumbnail_test(), toolbar_create(), toolbar_mouse_input(), toolbar_set_url(), toolbar_text_input(), toolbar_update_buttons(), treeview_cw_attach(), treeview_fini(), treeview_init(), treeview_move_selection(), treeview_node_contract(), treeview_node_contract_internal(), treeview_node_expand(), treeview_node_expand_internal(), update_scrollbars(), urldb__host_is_ip_address(), urldb_dump_hosts(), urldb_dump_paths(), urldb_dump_search(), urldb_load(), urldb_load_cookies(), urldb_match_path(), urldb_save(), urldb_set_cookie(), user_agent_build_string(), utf8_from_local_encoding(), utf8_save_text(), verify_ssl_form_do(), webp_convert(), widget_scroll_y(), win32_bitmap_create(), win32_bitmap_destroy(), win32_font_split(), win32_run(), win32_schedule(), win32_window_create(), win32_window_get_dimensions(), win32_window_get_scroll(), win32_window_set_scroll(), win32_window_set_title(), window_destroy(), window_init(), window_open_search(), window_restore_active_gui_window(), window_set_active_gui_window(), window_set_focus(), window_unref_gui_window(), WinMain(), write_blocks(), write_control(), xdg_data_strvec(), xdg_get_default_app(), and xdg_get_exec_cmd().

◆ NSLOG_COMPILED_MIN_LEVEL

#define NSLOG_COMPILED_MIN_LEVEL   NSLOG_EVL(NETSURF_LOG_LEVEL)

Definition at line 74 of file log.h.

◆ NSLOG_EVL

#define NSLOG_EVL (   level)    NSLOG_LVL(level)

Definition at line 73 of file log.h.

◆ NSLOG_LVL

#define NSLOG_LVL (   level)    NSLOG_LEVEL_ ## level

Definition at line 72 of file log.h.

Typedef Documentation

◆ nslog_ensure_t

typedef bool() nslog_ensure_t(FILE *fptr)

Ensures the FILE handle is available to write logging to.

This is provided by the frontends if required

Definition at line 35 of file log.h.

Enumeration Type Documentation

◆ nslog_level

Enumerator
NSLOG_LEVEL_DEEPDEBUG 
NSLOG_LEVEL_DEBUG 
NSLOG_LEVEL_VERBOSE 
NSLOG_LEVEL_INFO 
NSLOG_LEVEL_WARNING 
NSLOG_LEVEL_ERROR 
NSLOG_LEVEL_CRITICAL 

Definition at line 91 of file log.h.

Function Documentation

◆ nslog_finalise()

void nslog_finalise ( void  )

Shut down the logging system.

Shuts down the logging subsystem, resetting to verbose logging and output to stderr. Note, if logging is done after calling this, it will be sent to stderr without filtering.

Definition at line 294 of file log.c.

References logfile, NSLOG, and verbose_log.

Referenced by main(), and WinMain().

Here is the caller graph for this function:

◆ nslog_init()

nserror nslog_init ( nslog_ensure_t ensure,
int *  pargc,
char **  argv 
)

Initialise the logging system.

Sets up everything required for logging. Processes the argv passed to remove the -v switch for verbose logging. If necessary ensures the output file handle is available.

Definition at line 185 of file log.c.

References logfile, utsname::machine, netsurf_version, utsname::nodename, NSERROR_INIT_FAILED, NSERROR_NOT_FOUND, NSERROR_OK, NSLOG, nslog_set_filter(), utsname::release, utsname::sysname, uname(), verbose_log, and utsname::version.

Referenced by gui_init_replicant(), main(), and WinMain().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ nslog_log()

void nslog_log ( const char *  file,
const char *  func,
int  ln,
const char *  format,
  ... 
)

◆ nslog_set_filter()

nserror nslog_set_filter ( const char *  filter)

Set the logging filter.

Compiles and enables the given logging filter.

Definition at line 176 of file log.c.

References NSERROR_OK.

Referenced by nslog_gettime(), nslog_init(), and nslog_set_filter_by_options().

Here is the caller graph for this function:

◆ nslog_set_filter_by_options()

nserror nslog_set_filter_by_options ( void  )

Set the logging filter according to the options.

Definition at line 284 of file log.c.

References nslog_set_filter(), nsoption_charp, and verbose_log.

Referenced by nsoption_validate().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ verbose_log

bool verbose_log

flag to enable verbose logging

Definition at line 31 of file log.c.

Referenced by deskmenu_update(), fetch_curl_register(), main(), menu_vlog(), nslog_finalise(), nslog_init(), nslog_log(), nslog_set_filter_by_options(), and plot_init().