|
Tor 0.4.9.8
|
#include <stdarg.h>#include "lib/cc/torint.h"#include "lib/cc/compat_compiler.h"#include "lib/defs/logging_types.h"#include "lib/testsupport/testsupport.h"Go to the source code of this file.
Data Structures | |
| struct | log_severity_list_t |
Macros | |
| #define | LOG_DEBUG 7 |
| #define | LOG_INFO 6 |
| #define | LOG_NOTICE 5 |
| #define | LOG_WARN 4 |
| #define | LOG_ERR 3 |
| #define | LD_GENERAL (UINT64_C(1)<<0) |
| #define | LD_CRYPTO (UINT64_C(1)<<1) |
| #define | LD_NET (UINT64_C(1)<<2) |
| #define | LD_CONFIG (UINT64_C(1)<<3) |
| #define | LD_FS (UINT64_C(1)<<4) |
| #define | LD_PROTOCOL (UINT64_C(1)<<5) |
| #define | LD_MM (UINT64_C(1)<<6) |
| #define | LD_HTTP (UINT64_C(1)<<7) |
| #define | LD_APP (UINT64_C(1)<<8) |
| #define | LD_CONTROL (UINT64_C(1)<<9) |
| #define | LD_CIRC (UINT64_C(1)<<10) |
| #define | LD_REND (UINT64_C(1)<<11) |
| #define | LD_BUG (UINT64_C(1)<<12) |
| #define | LD_DIR (UINT64_C(1)<<13) |
| #define | LD_DIRSERV (UINT64_C(1)<<14) |
| #define | LD_OR (UINT64_C(1)<<15) |
| #define | LD_EDGE (UINT64_C(1)<<16) |
| #define | LD_EXIT LD_EDGE |
| #define | LD_ACCT (UINT64_C(1)<<17) |
| #define | LD_HIST (UINT64_C(1)<<18) |
| #define | LD_HANDSHAKE (UINT64_C(1)<<19) |
| #define | LD_HEARTBEAT (UINT64_C(1)<<20) |
| #define | LD_CHANNEL (UINT64_C(1)<<21) |
| #define | LD_SCHED (UINT64_C(1)<<22) |
| #define | LD_GUARD (UINT64_C(1)<<23) |
| #define | LD_CONSDIFF (UINT64_C(1)<<24) |
| #define | LD_DOS (UINT64_C(1)<<25) |
| #define | LD_PROCESS (UINT64_C(1)<<26) |
| #define | LD_PT (UINT64_C(1)<<27) |
| #define | LD_BTRACK (UINT64_C(1)<<28) |
| #define | LD_MESG (UINT64_C(1)<<29) |
| #define | N_LOGGING_DOMAINS 30 |
| #define | HIGHEST_RESERVED_LD_DOMAIN_ (UINT64_C(1)<<(N_LOGGING_DOMAINS - 1)) |
| #define | LD_ALL_DOMAINS ((~(UINT64_C(0)))>>(64 - N_LOGGING_DOMAINS)) |
| #define | N_LOGGING_FLAGS 3 |
| #define | LOWEST_RESERVED_LD_FLAG_ (UINT64_C(1)<<(64 - N_LOGGING_FLAGS)) |
| #define | LD_ALL_FLAGS ((~(UINT64_C(0)))<<(64 - N_LOGGING_FLAGS)) |
| #define | LD_NOCB (UINT64_C(1)<<62) |
| #define | LD_NOFUNCNAME (UINT64_C(1)<<63) |
| #define | log_debug(domain, args, ...) |
| #define | log_info(domain, args, ...) |
| #define | log_notice(domain, args, ...) |
| #define | log_warn(domain, args, ...) |
| #define | log_err(domain, args, ...) |
| #define | log_fn(severity, domain, args, ...) |
| #define | log_fn_ratelim(ratelim, severity, domain, args, ...) |
Typedefs | |
| typedef void(* | log_callback) (int severity, log_domain_mask_t domain, const char *msg) |
| typedef void(* | pending_callback_callback) (void) |
Functions | |
| void | init_logging (int disable_startup_queue) |
| int | parse_log_level (const char *level) |
| const char * | log_level_to_string (int level) |
| int | parse_log_severity_config (const char **cfg, log_severity_list_t *severity_out) |
| void | set_log_severity_config (int minSeverity, int maxSeverity, log_severity_list_t *severity_out) |
| void | add_stream_log (const log_severity_list_t *severity, const char *name, int fd) |
| int | add_file_log (const log_severity_list_t *severity, const char *filename, int fd) |
| int | add_callback_log (const log_severity_list_t *severity, log_callback cb) |
| void | logs_set_pending_callback_callback (pending_callback_callback cb) |
| void | logs_set_domain_logging (int enabled) |
| int | get_min_log_level (void) |
| void | switch_logs_debug (void) |
| void | logs_free_all (void) |
| void | logs_flush_sigsafe (void) |
| void | add_default_log (int min_severity) |
| void | close_temp_logs (void) |
| void | rollback_log_changes (void) |
| void | mark_logs_temp (void) |
| void | change_callback_log_severity (int loglevelMin, int loglevelMax, log_callback cb) |
| void | flush_pending_log_callbacks (void) |
| void | flush_log_messages_from_startup (void) |
| void | log_set_application_name (const char *name) |
| void | set_log_time_granularity (int granularity_msec) |
| void | truncate_logs (void) |
| void | tor_log (int severity, log_domain_mask_t domain, const char *format,...) |
| void | tor_log_update_sigsafe_err_fds (void) |
| void | tor_log_get_logfile_names (struct smartlist_t *out) |
| static bool | debug_logging_enabled (void) |
| void | log_fn_ (int severity, log_domain_mask_t domain, const char *funcname, const char *format,...) |
| void | log_fn_ratelim_ (struct ratelim_t *ratelim, int severity, log_domain_mask_t domain, const char *funcname, const char *format,...) |
| int | log_message_is_interesting (int severity, log_domain_mask_t domain) |
| void | tor_log_string (int severity, log_domain_mask_t domain, const char *function, const char *string) |
Variables | |
| int | log_global_min_severity_ |
| const int | LOG_WARN_ |
| const int | LOG_NOTICE_ |
| const log_domain_mask_t | LD_NET_ |
| const log_domain_mask_t | LD_GENERAL_ |
| #define HIGHEST_RESERVED_LD_DOMAIN_ (UINT64_C(1)<<(N_LOGGING_DOMAINS - 1)) |
| #define LD_ACCT (UINT64_C(1)<<17) |
Bandwidth accounting.
Definition at line 97 of file log.h.
Referenced by accounting_set_wakeup_time(), configure_accounting(), consider_hibernation(), hibernate_end(), hibernate_end_time_elapsed(), hibernate_go_dormant(), read_bandwidth_usage(), and reset_accounting().
| #define LD_ALL_DOMAINS ((~(UINT64_C(0)))>>(64 - N_LOGGING_DOMAINS)) |
All log domains.
Definition at line 128 of file log.h.
Referenced by parse_log_severity_config(), set_log_severity_config(), switch_logs_debug(), and tor_log().
| #define LD_ALL_FLAGS ((~(UINT64_C(0)))<<(64 - N_LOGGING_FLAGS)) |
| #define LD_APP (UINT64_C(1)<<8) |
Application (socks) requests.
Definition at line 78 of file log.h.
Referenced by addressmap_register(), addressmap_register_virtual_address(), addressmap_rewrite(), addressmap_rewrite_reverse(), adjust_exit_policy_from_exitpolicy_failure(), circuit_consider_stop_edge_reading(), circuit_detach_stream(), circuit_discard_optional_exit_enclaves(), circuit_get_open_circ_or_launch(), circuit_resume_edge_reading(), circuit_truncated(), client_dns_incr_failures(), connection_ap_expire_beginning(), connection_ap_fail_onehop(), connection_ap_handle_onion(), connection_ap_handshake_attach_circuit(), connection_ap_handshake_process_socks(), connection_ap_handshake_rewrite_and_attach(), connection_ap_handshake_send_begin(), connection_ap_handshake_send_resolve(), connection_ap_make_link(), connection_ap_process_end_not_open(), connection_ap_process_natd(), connection_ap_process_transparent(), connection_edge_package_raw_inbuf(), connection_edge_process_relay_cell(), connection_edge_process_relay_cell_not_open(), connection_edge_process_resolved_cell(), connection_edge_send_command(), connection_handle_listener_read(), consider_plaintext_ports(), dnsserv_launch_request(), evdns_server_callback(), fetch_bridge_descriptors(), get_unique_stream_id_by_circ(), handle_relay_msg(), launch_direct_bridge_descriptor_fetch(), link_apconn_to_circ(), log_unsafe_socks_warning(), parse_extended_hostname(), parse_socks(), parse_socks4_request(), parse_socks5_client_request(), parse_socks5_methods_request(), parse_socks5_userpass_auth(), process_socks4_request(), process_socks5_client_request(), process_socks5_methods_request(), process_socks5_userpass_auth(), relay_lookup_conn(), rend_process_relay_cell(), sendme_connection_edge_consider_sending(), sendme_process_circuit_level_impl(), and socks_request_set_socks5_error().
| #define LD_BTRACK (UINT64_C(1)<<28) |
Bootstrap tracker.
Definition at line 119 of file log.h.
Referenced by bto_chan_rcvr(), bto_delete(), bto_state_rcvr(), bto_status_rcvr(), bto_update(), and bto_update_best().
| #define LD_BUG (UINT64_C(1)<<12) |
Internal errors in this Tor process.
Definition at line 86 of file log.h.
Referenced by accounting_set_wakeup_time(), add_default_fallback_dir_servers(), add_default_trusted_dir_authorities(), addr_policy_permits_tor_addr(), addressmap_get_virtual_address(), addressmap_register_virtual_address(), addressmap_rewrite(), append_exit_policy_string(), assign_onionskin_to_cpuworker(), authority_cert_dl_failed(), authority_certs_fetch_missing(), begin_cell_parse(), bridgeauth_dump_bridge_status_to_file(), buf_assert_ok(), channel_mark_circid_unusable(), channel_mark_circid_usable(), channel_remove_from_digest_map(), channel_send_destroy(), check_sockaddr_family_match(), choose_good_exit_server(), circpad_estimate_circ_rtt_on_received(), circpad_estimate_circ_rtt_on_send(), circpad_machine_remove_token(), circpad_marked_circuit_for_padding(), circpad_send_command_to_hop(), circuit_build_no_more_hops(), circuit_build_times_add_time(), circuit_build_times_close_quantile(), circuit_build_times_default_num_xm_modes(), circuit_build_times_initial_timeout(), circuit_build_times_max_timeouts(), circuit_build_times_min_circs_to_observe(), circuit_build_times_min_timeout(), circuit_build_times_quantile_cutoff(), circuit_build_times_recent_circuit_count(), circuit_build_times_test_frequency(), circuit_clear_isolation(), circuit_detach_stream(), circuit_end_reason_to_control_string(), circuit_expire_building(), circuit_get_open_circ_or_launch(), circuit_get_package_window(), circuit_launch_by_extend_info(), circuit_mark_for_close_(), circuit_package_relay_cell(), circuit_purpose_is_correct_for_rend(), circuit_purpose_to_controller_hs_state_string(), circuit_send_intermediate_onion_skin(), circuit_send_stream_xoff(), circuit_send_stream_xon(), circuit_state_to_string(), circuit_unlink_all_from_channel(), circuitmux_detach_all_circuits(), clear_waitpid_callback(), commit_decode(), compare_known_tor_addr_to_addr_policy(), compare_known_tor_addr_to_addr_policy_noport(), compare_tor_addr_to_addr_policy(), compare_unknown_tor_addr_to_addr_policy(), compute_drain_rate(), compute_weighted_bandwidths(), config_check_ok(), config_dump(), config_dup(), config_reset(), configure_nameservers(), conflux_can_send(), conflux_cell_parse_switch(), conflux_decide_circ_for_send(), conflux_get_destination_hop(), conflux_log_set(), conflux_note_cell_sent(), conflux_pick_first_leg(), conflux_process_relay_msg(), conflux_process_switch_command(), conflux_send_switch_command(), conflux_should_multiplex(), conflux_update_rtt(), conflux_validate_legs(), conflux_validate_source_hop(), congestion_control_get_control_port_fields(), congestion_control_init_params(), congestion_control_new_consensus_params(), conn_read_callback(), conn_state_to_string(), conn_type_to_string(), conn_write_callback(), connection_ap_about_to_close(), connection_ap_attach_pending(), connection_ap_expire_beginning(), connection_ap_get_original_destination(), connection_ap_handshake_rewrite_and_attach(), connection_ap_handshake_send_resolve(), connection_ap_handshake_socks_reply(), connection_ap_handshake_socks_resolved_addr(), connection_ap_mark_as_pending_circuit_(), connection_ap_rescan_and_attach_pending(), connection_buckets_decrement(), connection_buf_read_from_socket(), connection_check_event(), connection_close_immediate(), connection_connect_sockaddr(), connection_dir_finished_flushing(), connection_dir_retry_bridges(), connection_dns_remove(), connection_edge_about_to_close(), connection_edge_compatible_with_circuit(), connection_edge_end(), connection_edge_finished_flushing(), connection_edge_package_raw_inbuf(), connection_edge_process_inbuf(), connection_edge_process_ordered_relay_cell(), connection_edge_send_command(), connection_edge_update_circuit_isolation(), connection_exit_begin_conn(), connection_ext_or_auth_handle_client_nonce(), connection_ext_or_auth_process_inbuf(), connection_finished_connecting(), connection_finished_flushing(), connection_free_minimal(), connection_half_edge_add(), connection_handle_write_impl(), connection_init_or_handshake_state(), connection_listener_new(), connection_mark_for_close_(), connection_mark_for_close_internal_(), connection_mark_unattached_ap_(), connection_or_compute_authenticate_cell_body(), connection_or_finished_flushing(), connection_or_send_auth_challenge_cell(), connection_or_send_authenticate_cell(), connection_or_send_netinfo(), connection_printf_to_buf(), connection_process_inbuf(), connection_proxy_connect(), connection_reached_eof(), connection_read_proxy_handshake(), connection_tls_start_handshake(), consdiff_gen_diff(), consider_hibernation(), control_event_circuit_status(), control_event_circuit_status_minor(), control_event_hs_descriptor_content(), control_event_logmsg(), control_event_or_conn_status(), control_event_signal(), control_event_status(), control_event_stream_status(), control_vprintf_reply(), count_client_usable_sets(), cpath_assert_layer_ok(), create_cell_format_impl(), create_family_id_key(), crypto_digest_get_digest(), crypto_pk_public_checksig_digest(), crypto_set_options(), desc_encode_v3(), dir_conn_purpose_to_string(), dir_fetch_type(), dir_routerdesc_download_failed(), dir_server_new(), directory_initiate_request(), directory_pick_generic_dirserver(), directory_send_command(), dirserv_add_own_fingerprint(), dirserv_generate_networkstatus_vote_obj(), dirserv_router_get_status(), dirvote_compute_consensuses(), disk_state_parse_commits(), disk_state_parse_sr_values(), disk_state_parse_srv(), dns_cancel_pending_resolve(), dns_launch_correctness_checks(), dns_reset(), dns_resolve_impl(), do_list_fingerprint(), download_status_increment_attempt(), entry_guard_learned_bridge_identity(), evdns_callback(), extrainfo_dump_to_string(), extrainfo_dump_to_string_header_helper(), extrainfo_dump_to_string_rsa_sig_helper(), extrainfo_insert(), extrainfo_parse_entry_from_string(), find_by_keyword_(), flow_control_decide_xoff(), fmt_af_family(), format_msg(), format_networkstatus_vote(), get_inner_encrypted_layer_plaintext(), get_my_declared_family(), get_unique_circ_id_by_chan(), getinfo_helper_events(), handle_control_authenticate(), handle_control_del_onion(), handle_relay_msg(), handle_signals(), hibernate_state_to_string(), hs_cache_decrement_allocation(), hs_cache_increment_allocation(), hs_cell_build_establish_intro(), hs_circuitmap_remove_circuit(), hs_get_extend_info_from_lspecs(), init_keys(), keypin_clear(), launch_one_resolve(), launch_resolve(), link_circuit(), linked_circuit_free(), lint_message(), lint_message_consistency(), lint_message_graph(), load_stats_file(), log_buggy_rs_source(), log_ed_cert_expiration(), log_fn_(), make_pending_resolve_cached(), marked_circuit_free_cells(), microdesc_cache_clean(), microdesc_cache_rebuild(), microdesc_free_(), monitor_owning_controller_process(), move_ephemeral_services(), network_init(), networkstatus_compute_bw_weights_v10(), networkstatus_compute_consensus(), networkstatus_get_detached_signatures(), networkstatus_set_current_consensus(), networkstatus_verify_bw_weights(), new_cached_dir(), node_add_to_ed25519_map(), nodelist_subtract(), onion_handshake_state_release(), onion_pending_add(), onion_queue_entry_remove(), onion_skin_client_handshake(), onion_skin_create(), onion_skin_server_handshake(), onionskin_answer(), options_act(), options_act_relay(), options_act_relay_accounting(), options_act_server_transport(), options_dump(), options_init(), or_handshake_state_record_cell(), or_state_load(), or_state_save_broken(), orconn_end_reason_to_control_string(), origin_circuit_new(), pathbias_count_build_attempt(), pathbias_count_build_success(), pathbias_count_use_attempt(), pathbias_count_use_success(), pathbias_mark_use_success(), pathbias_scale_close_rates(), pathbias_scale_use_rates(), pathbias_send_usable_probe(), pathbias_should_count(), periodic_event_connect(), periodic_event_dispatch(), periodic_event_launch(), pick_curve25519_basepoint_impl(), policy_dump_to_string(), policy_expand_unspec(), policy_summarize(), pt_update_bridge_lines(), purge_expired_resolves(), purpose_needs_anonymity(), reachable_addr_allows_addr(), reachable_addr_choose_from_ls(), record_rtt_client(), record_rtt_exit(), register_all_services(), relay_send_command_from_edge_(), remove_service(), rep_hist_desc_stats_init(), rep_hist_note_negotiated_link_proto(), replaycache_add_and_test_internal(), replaycache_free_(), replaycache_new(), replaycache_scrub_if_needed_internal(), reveal_decode(), rewrite_node_address_for_bridge(), rotate_onion_key(), rotate_x509_certificate_callback(), route_len_for_purpose(), router_append_dirobj_signature(), router_compute_hash_final(), router_dump_and_sign_extrainfo_descriptor_body(), router_dump_and_sign_routerinfo_descriptor_body(), router_dump_router_to_string(), router_get_dirobj_signature(), router_get_hashes_impl(), router_parse_entry_from_string(), router_rebuild_store(), router_should_be_dirserver(), routerinfo_err_to_string(), routerlist_replace(), routerstatus_format_entry(), sampled_guards_update_consensus_presence(), send_control_event_impl(), service_handle_introduce2(), set_options(), set_server_identity_key(), should_keep_commit(), should_log_function_name(), should_rotate_descriptors(), sr_parse_commit(), timers_initialize(), tor1_crypt_init(), tor_addr_is_internal_(), tor_addr_is_null(), tor_assertion_failed_(), tor_bug_occurred_(), tor_cert_create_raw(), tor_compress_impl(), tor_gmtime_r(), tor_localtime_r(), tor_log_update_sigsafe_err_fds(), tor_run_main(), tor_timegm(), tor_timegm_impl(), tor_version_as_new_as(), tor_version_is_obsolete(), typed_var_copy(), update_circuit_on_cmux_(), update_consensus_router_descriptor_downloads(), update_total_bandwidth_weights(), validate_circ_has_no_streams(), verify_commit_and_reveal(), voting_sched_get_start_of_interval_after(), warn_if_last_router_excluded(), write_configuration_file(), write_escaped_data(), and write_str_to_file().
| #define LD_CHANNEL (UINT64_C(1)<<21) |
Abstract channel_t code
Definition at line 105 of file log.h.
Referenced by channel_add_to_digest_map(), channel_change_state_(), channel_clear_identity_digest(), channel_clear_remote_end(), channel_close_for_error(), channel_close_from_lower_layer(), channel_force_xfree(), channel_free_(), channel_free_all(), channel_free_list(), channel_listener_change_state(), channel_listener_force_xfree(), channel_listener_free_(), channel_listener_free_list(), channel_listener_mark_for_close(), channel_listener_process_incoming(), channel_listener_queue_incoming(), channel_listener_register(), channel_listener_set_listener_fn(), channel_mark_for_close(), channel_process_cell(), channel_register(), channel_remove_from_digest_map(), channel_set_cell_handlers(), channel_set_identity_digest(), channel_tls_close_method(), channel_tls_connect(), channel_tls_free_all(), channel_tls_get_overhead_estimate_method(), channel_tls_handle_cell(), channel_tls_handle_incoming(), channel_tls_handle_var_cell(), channel_tls_has_queued_writes_method(), channel_tls_matches_extend_info_method(), channel_tls_matches_target_method(), channel_tls_start_listener(), channel_tls_update_marks(), channel_tls_write_cell_method(), channel_tls_write_packed_cell_method(), channel_tls_write_var_cell_method(), channel_write_packed_cell(), connection_free_minimal(), connection_mark_for_close_(), and connection_mark_for_close_internal_().
| #define LD_CIRC (UINT64_C(1)<<10) |
Building, using, and managing circuits.
Definition at line 82 of file log.h.
Referenced by add_predicted_port(), cfx_del_leg(), choose_good_exit_server_general(), choose_good_middle_server(), circpad_add_matching_machines(), circpad_check_received_cell(), circpad_choose_state_length(), circpad_circuit_machineinfo_free_idx(), circpad_deliver_recognized_relay_cell_events(), circpad_distribution_sample(), circpad_estimate_circ_rtt_on_received(), circpad_estimate_circ_rtt_on_send(), circpad_handle_padding_negotiate(), circpad_handle_padding_negotiated(), circpad_machine_client_hide_intro_circuits(), circpad_machine_client_hide_rend_circuits(), circpad_machine_current_state(), circpad_machine_relay_hide_intro_circuits(), circpad_machine_relay_hide_rend_circuits(), circpad_machine_remove_closest_token(), circpad_machine_schedule_padding(), circpad_machine_spec_transition(), circpad_machine_spec_transitioned_to_end(), circpad_marked_circuit_for_padding(), circpad_negotiate_padding(), circpad_node_supports_padding(), circpad_send_command_to_hop(), circpad_send_padding_callback(), circpad_send_padding_cell_for_callback(), circuit_build_failed(), circuit_build_no_more_hops(), circuit_build_times_add_time(), circuit_build_times_disabled_(), circuit_build_times_get_initial_timeout(), circuit_build_times_get_xm(), circuit_build_times_handle_completed_hop(), circuit_build_times_network_check_changed(), circuit_build_times_network_close(), circuit_build_times_network_is_live(), circuit_build_times_new_consensus_params(), circuit_build_times_parse_state(), circuit_build_times_set_timeout(), circuit_build_times_set_timeout_worker(), circuit_build_times_shuffle_and_store_array(), circuit_build_times_update_alpha(), circuit_change_purpose(), circuit_count_pending_on_channel(), circuit_deliver_create_cell(), circuit_dump_conn_details(), circuit_expire_building(), circuit_expire_old_circuits_clientside(), circuit_expire_old_circuits_serverside(), circuit_extend(), circuit_extend_to_new_exit(), circuit_find_to_cannibalize(), circuit_finish_handshake(), circuit_free_(), circuit_get_by_circid_channel_impl(), circuit_get_open_circ_or_launch(), circuit_handle_first_hop(), circuit_increment_failure_count(), circuit_is_acceptable(), circuit_launch_by_extend_info(), circuit_n_chan_done(), circuit_predict_and_launch_new(), circuit_remove_handled_ports(), circuit_send_first_onion_skin(), circuit_send_intermediate_onion_skin(), circuit_truncated(), circuit_unlink_all_from_channel(), circuitmux_attach_circuit(), circuitmux_detach_all_circuits(), circuitmux_free_(), circuitmux_notify_xmit_destroy(), compute_weighted_bandwidths(), conflux_can_exclude_used_bridges(), conflux_circuit_has_opened(), conflux_decide_next_circ(), conflux_dequeue_relay_msg(), conflux_handle_oom(), conflux_launch_leg(), conflux_predict_new(), conflux_process_link(), conflux_process_linked(), conflux_process_linked_ack(), conflux_process_relay_msg(), conflux_send_switch_command(), conflux_validate_source_hop(), congestion_control_dispatch_cc_alg(), congestion_control_update_circuit_bdp(), congestion_control_update_circuit_rtt(), congestion_control_vegas_log(), congestion_control_vegas_process_sendme(), connection_ap_handshake_attach_circuit(), cwnd_sendable(), dequeue_timestamp(), entry_guard_inc_circ_attempt_count(), entry_guard_parse_from_state(), extend_info_from_node(), free_circ_machineinfos_with_machine_num(), get_unique_circ_id_by_chan(), hs_circ_service_intro_has_opened(), launch_leg_is_allowed(), link_apconn_to_circ(), networkstatus_compute_bw_weights_v10(), new_route_len(), onion_extend_cpath(), onion_pending_add(), onion_pick_cpath_exit(), onion_populate_cpath(), onionskin_answer(), options_act(), origin_circuit_new(), padding_machine_state_is_valid(), pathbias_check_close(), pathbias_check_probe_response(), pathbias_count_build_attempt(), pathbias_count_build_success(), pathbias_count_circs_in_states(), pathbias_count_collapse(), pathbias_count_successful_close(), pathbias_count_use_attempt(), pathbias_count_use_failed(), pathbias_count_use_success(), pathbias_mark_use_rollback(), pathbias_measure_close_rate(), pathbias_measure_use_rate(), pathbias_scale_close_rates(), pathbias_scale_use_rates(), pathbias_send_usable_probe(), pathbias_should_count(), pick_restricted_middle_node(), pick_vanguard_middle_node(), record_rtt(), record_rtt_client(), record_rtt_exit(), relay_crypt_from_last_hop(), rep_hist_get_predicted_ports(), rep_hist_note_used_internal(), rep_hist_note_used_port(), router_choose_random_node(), router_do_orport_reachability_checks(), router_should_check_reachability(), sendme_circuit_consider_sending(), sendme_connection_edge_consider_sending(), time_delta_stalled_or_jumped(), try_finalize_set(), unlinked_circuit_closed(), validate_unlinked_legs(), and warn_if_last_router_excluded().
| #define LD_CONFIG (UINT64_C(1)<<3) |
Parsing and acting on our configuration.
Definition at line 68 of file log.h.
Referenced by accounting_parse_options(), addr_policy_append_reject_addr(), address_can_be_used(), addressmap_get_virtual_address(), addressmap_register(), addressmap_rewrite(), bridge_add_from_config(), check_and_prune_server_ports(), check_bridge_distribution_setting(), check_network_configuration(), check_private_dir(), check_value_oob(), compute_publishserverdescriptor(), config_assign_line(), config_expand_abbrev(), config_generic_service(), config_get_assigned_option(), config_get_lines_aux(), config_has_invalid_options(), config_mgr_find_var(), config_parse_commandline(), config_parse_interval(), config_parse_msec_interval(), config_parse_units(), config_register_addressmaps(), config_validate_service(), dirserv_load_fingerprint_file(), dirserv_read_measured_bandwidths(), do_hup(), exit_policy_remove_redundancies(), expand_filename(), find_my_address(), find_torrc_filename(), get_address_from_config(), get_address_from_hostname(), get_address_from_interface(), get_address_from_orport(), get_bindaddr_from_transport_listen_line(), get_data_directory(), get_my_declared_family(), get_options_from_transport_options_line(), get_user_homedir(), handle_cmdline_format(), handle_cmdline_master_key(), handle_cmdline_newpass(), handle_cmdline_no_passphrase(), handle_cmdline_passphrase_fd(), handle_finished_proxy(), handle_methods_done(), handle_proxy_line(), helper_parse_circuit_id_protocol(), hs_config_service_all(), hs_service_add_ephemeral(), hs_service_del_ephemeral(), launch_direct_bridge_descriptor_fetch(), launch_managed_proxy(), load_policy_from_option(), load_torrc_from_disk(), node_get_by_nickname(), options_act(), options_act_bridge_stats(), options_act_relay_dir(), options_act_relay_stats(), options_act_relay_stats_msg(), options_act_server_transport(), options_init_from_torrc(), options_init_log_granularity(), options_init_logs(), options_validate_cb(), options_validate_dirauth_mode(), options_validate_relay_accounting(), options_validate_relay_info(), options_validate_relay_mode(), options_validate_relay_os(), parse_addr_policy(), parse_bridge_line(), parse_dir_authority_line(), parse_dir_fallback_line(), parse_dirauth_dirport(), parse_env_error(), parse_log_severity_config(), parse_method_error(), parse_method_line_helper(), parse_proxy_error(), parse_reachable_addresses(), parse_version(), port_parse_config(), port_warn_nonlocal_ext_orports(), process_signal(), proxy_prepare_for_restart(), pt_configure_remaining_proxies(), pt_parse_transport_line(), reachability_warnings_callback(), relay_find_addr_to_publish(), remove_duplicate_orports(), resolved_addr_set_suggested(), rewrite_node_address_for_bridge(), router_build_fresh_unsigned_routerinfo(), routerconf_find_ipv6_or_ap(), routerset_parse(), routerset_refresh_countries(), save_transport_to_state(), set_max_file_descriptors(), set_scheduler(), state_transport_line_is_valid(), subsystems_flush_state(), subsystems_register_options_formats(), subsystems_register_state_formats(), subsystems_set_options(), subsystems_set_state(), switch_id(), tor_disable_debugger_attach(), tor_init(), tor_run_main(), tor_version_is_obsolete(), trusted_dir_server_new(), validate_addr_policies(), validate_data_directories(), validate_dir_servers(), validate_transport_socks_arguments(), validate_transports_in_state(), warn_deprecated_option(), warn_nonlocal_client_ports(), warn_nonlocal_controller_ports(), and write_configuration_file().
| #define LD_CONSDIFF (UINT64_C(1)<<24) |
Generation and application of consensus diffs.
Definition at line 111 of file log.h.
Referenced by apply_ed_diff(), consdiff_apply_diff(), consdiff_gen_diff(), consdiff_get_digests(), find_next_router_line(), and gen_ed_diff().
| #define LD_CONTROL (UINT64_C(1)<<9) |
Communication via the controller protocol.
Definition at line 80 of file log.h.
Referenced by connection_ap_handle_onion(), connection_control_reached_eof(), connection_handle_listener_read(), control_event_bootstrap_core(), control_event_bootstrap_problem(), control_event_network_liveness_update(), control_ports_write_to_file(), control_send_http_reject(), control_setconf_helper(), do_signewnym(), getinfo_helper_dir(), handle_control_authenticate(), handle_control_dropguards(), handle_control_dropownership(), handle_control_droptimeouts(), handle_control_extendcircuit(), handle_control_loadconf(), handle_control_mapaddress(), handle_control_resolve(), handle_control_setevents(), handle_control_takeownership(), handle_deferred_signewnym_cb(), lost_owning_controller(), monitor_owning_controller_process(), and signewnym_impl().
| #define LD_CRYPTO (UINT64_C(1)<<1) |
The cryptography subsystem.
Definition at line 64 of file log.h.
Referenced by crypto_dh_generate_public(), crypto_dh_get_public(), crypto_dh_handshake(), crypto_force_rand_ssleay(), crypto_openssl_early_init(), crypto_openssl_init_engines(), crypto_openssl_late_init(), crypto_openssl_log_errors(), crypto_pk_asn1_decode_private(), crypto_pk_base64_decode_private(), crypto_pk_obsolete_private_hybrid_decrypt(), crypto_pk_public_checksig_digest(), crypto_pk_read_from_string_generic(), crypto_pk_read_private_key_from_filename(), crypto_strongest_rand_(), crypto_strongest_rand_fallback(), crypto_strongest_rand_raw(), crypto_strongest_rand_syscall(), ed25519_validate_pubkey(), log_engine(), pick_curve25519_basepoint_impl(), pick_ed25519_impl(), tor_check_dh_key(), tor_tls_cert_is_valid(), tor_tls_context_init(), tor_tls_context_init_certificates(), tor_tls_export_key_material(), tor_tls_get_pending_bytes(), tor_tls_new(), tor_tls_read(), tor_tls_write(), and tor_x509_cert_decode().
| #define LD_DIR (UINT64_C(1)<<13) |
Learning and using information about Tor servers.
Definition at line 88 of file log.h.
Referenced by any_other_active_or_conns(), authority_cert_parse_from_string(), authority_certs_fetch_missing(), cache_dir_desc_new(), check_one_family_cert(), check_signature_token(), check_tap_onion_key_crosscert(), circuit_build_times_close_quantile(), circuit_build_times_initial_timeout(), circuit_get_open_circ_or_launch(), commit_add_to_state(), commit_log(), compute_consensus_versions_list(), compute_routerstatus_consensus(), connection_ap_handshake_attach_circuit(), connection_dir_client_reached_eof(), connection_dir_client_request_failed(), connection_dir_download_cert_failed(), connection_dir_finished_flushing(), connection_dir_is_anonymous(), count_usable_descriptors(), desc_decode_superencrypted_v3(), dir_microdesc_download_failed(), dir_split_resource_into_fingerprint_pairs(), dir_split_resource_into_fingerprints(), dirauth_get_voting_schedule(), directory_get_from_dirserver(), directory_handle_command_post(), directory_info_has_arrived(), directory_initiate_request(), directory_pick_generic_dirserver(), directory_post_to_dirservers(), directory_request_set_dir_from_routerstatus(), directory_send_command(), dirserv_add_descriptor(), dirserv_add_extrainfo(), dirserv_generate_networkstatus_vote_obj(), dirserv_router_get_status(), dirserv_should_launch_reachability_test(), dirvote_act(), dirvote_add_signatures(), dirvote_add_signatures_to_pending_consensus(), dirvote_add_vote(), dirvote_compute_consensuses(), dirvote_create_microdescriptor(), dirvote_perform_vote(), dirvote_publish_consensus(), disk_state_load_from_disk_impl(), disk_state_parse_sr_values(), disk_state_save_to_disk(), disk_state_validate(), dump_desc(), dump_desc_create_dir(), dump_desc_fifo_add_and_clean(), dump_desc_init(), dump_desc_populate_fifo_from_directory(), dump_desc_populate_one_file(), dump_microdescriptor(), dump_routerlist_mem_usage(), export_consensus_for_transparency(), extract_shared_random_commits(), extrainfo_insert(), extrainfo_parse_entry_from_string(), fetch_bridge_descriptors(), generate_srv(), get_majority_srv_from_votes(), get_net_param_from_list(), get_state_valid_until_time(), get_vote_line_from_commit(), handle_get_next_bandwidth(), handle_response_fetch_certificate(), handle_response_fetch_consensus(), handle_response_fetch_desc(), handle_response_fetch_detached_signatures(), handle_response_fetch_microdesc(), handle_response_fetch_status_vote(), handle_response_upload_signatures(), handle_response_upload_vote(), http_set_address_origin(), init_keys(), launch_descriptor_downloads(), learned_bridge_descriptor(), learned_router_identity(), load_authority_keyset(), microdesc_cache_rebuild(), microdesc_cache_reload(), microdesc_parse_fields(), microdescs_add_list_to_cache(), microdescs_add_to_cache(), microdescs_parse_from_string(), networkstatus_add_detached_signatures(), networkstatus_check_consensus_signature(), networkstatus_check_document_signature(), networkstatus_check_weights(), networkstatus_compute_bw_weights_v10(), networkstatus_compute_consensus(), networkstatus_get_bw_weight(), networkstatus_get_detached_signatures(), networkstatus_getinfo_by_purpose(), networkstatus_parse_detached_signatures(), networkstatus_parse_vote_from_string(), networkstatus_set_current_consensus(), networkstatus_verify_bw_weights(), new_protocol_run(), node_log_dup_ed_id(), parse_dir_authority_line(), parse_http_command(), parse_one_diff_hash(), parse_short_policy(), policies_log_first_redundant_entry(), pt_parse_transport_line(), rewrite_node_address_for_bridge(), router_add_exit_policy(), router_add_to_routerlist(), router_get_hash_impl_helper(), router_have_minimum_dir_info(), router_load_extrainfo_from_string(), router_load_routers_from_string(), router_load_single_router(), router_parse_addr_policy(), router_parse_addr_policy_item_from_string(), router_parse_entry_from_string(), router_parse_list_from_string(), router_pick_directory_server(), router_pick_dirserver_generic(), router_rebuild_store(), router_set_status(), router_should_be_dirserver(), routerlist_remove_old_routers(), run_connection_housekeeping(), should_delay_dir_fetches(), should_keep_commit(), should_keep_srv(), signed_descriptor_get_body_impl(), sr_compute_srv(), sr_generate_our_commit(), sr_get_string_for_consensus(), sr_get_string_for_vote(), sr_parse_commit(), sr_state_add_commit(), sr_state_copy_reveal_info(), sr_state_update(), srv_to_ns_string(), tokenize_string(), tor_lzma_compress_process(), tor_version_parse_platform(), tor_zlib_compress_process(), tor_zstd_compress_process(), trusted_dirs_load_certs_from_string(), update_consensus_bootstrap_attempt_downloads(), update_consensus_networkstatus_downloads(), update_consensus_networkstatus_fetch_time_impl(), update_consensus_router_descriptor_downloads(), update_extrainfo_downloads(), update_router_have_minimum_dir_info(), v3_authority_check_key_expiry(), and verify_commit_and_reveal().
| #define LD_DIRSERV (UINT64_C(1)<<14) |
Learning and using information about Tor servers.
Definition at line 90 of file log.h.
Referenced by add_ed25519_to_dir(), add_rsa_fingerprint_to_dir(), authdir_wants_to_reject_router(), bridgeauth_dump_bridge_status_to_file(), connection_dir_finished_flushing(), connection_handle_listener_read(), consdiffmgr_add_consensus(), consdiffmgr_cleanup(), consdiffmgr_rescan_flavor_(), consensus_diff_worker_replyfn(), directory_handle_command(), directory_handle_command_get(), directory_handle_command_post(), directory_remove_invalid(), dirserv_add_descriptor(), dirserv_compute_performance_thresholds(), dirserv_get_status_impl(), dirserv_orconn_tls_done(), dirserv_read_measured_bandwidths(), dirserv_router_has_valid_address(), format_recommended_version_list(), handle_get_current_consensus(), handle_get_descriptor(), handle_get_microdesc(), keypin_journal_append_entry(), keypin_load_journal_impl(), measured_bw_line_apply(), measured_bw_line_parse(), store_multiple(), warn_consensus_is_not_reasonably_live(), and write_short_http_response().
| #define LD_DOS (UINT64_C(1)<<25) |
| #define LD_EDGE (UINT64_C(1)<<16) |
Generic edge-connection functionality.
Definition at line 94 of file log.h.
Referenced by circuit_process_stream_xoff(), circuit_process_stream_xon(), connection_ap_get_begincell_flags(), connection_ap_process_http_connect(), connection_edge_destroy(), connection_edge_end(), connection_edge_process_inbuf(), connection_edge_reached_eof(), flow_control_decide_xoff(), flow_control_decide_xon(), flow_control_note_sent_data(), metrics_connection_process_inbuf(), and metrics_connection_reached_eof().
| #define LD_FS (UINT64_C(1)<<4) |
Reading and writing from the filesystem.
Definition at line 70 of file log.h.
Referenced by accounting_run_housekeeping(), cdm_cache_init(), check_and_create_data_directory(), check_private_dir(), configure_nameservers(), connection_listener_new(), consensus_cache_rescan(), control_ports_write_to_file(), crypto_strongest_rand_fallback(), dirserv_load_fingerprint_file(), dirserv_read_guardfraction_file(), disk_state_load_from_disk_impl(), disk_state_save_to_disk(), expire_old_onion_keys(), fdopen_file(), file_status(), hs_ob_parse_config_file(), init_cookie_authentication(), init_curve25519_keypair_from_file(), init_key_from_file(), init_keys(), microdesc_cache_clear(), microdesc_cache_rebuild(), networkstatus_set_current_consensus(), or_state_load(), or_state_save(), or_state_save_broken(), pt_update_bridge_lines(), read_bandwidth_usage(), rotate_onion_key(), router_rebuild_store(), router_reload_router_list_impl(), router_write_fingerprint(), routerlist_free_(), signed_desc_append_to_journal(), start_writing_to_file(), storage_dir_clean_tmpfiles(), storage_dir_remove_file(), store_multiple(), tor_fopen_cloexec(), tor_listdir(), tor_lockfile_lock(), tor_lockfile_unlock(), tor_open_cloexec(), tor_open_socket_with_extensions(), tor_remove_file(), tor_rename(), trusted_dirs_flush_certs_to_disk(), write_address_to_file(), write_configuration_file(), and write_pidfile().
| #define LD_GENERAL (UINT64_C(1)<<0) |
Catch-all for miscellaneous events and fatal errors.
Definition at line 62 of file log.h.
Referenced by add_entropy_callback(), append_cell_to_circuit_queue(), base32_decode(), bridge_add_from_config(), bridge_resolve_conflicts(), build_service_desc_keys(), can_client_refetch_desc(), channel_dump_statistics(), channel_dumpstats(), channel_flush_from_first_active_circuit(), channel_listener_dump_statistics(), channel_listener_dumpstats(), channel_tls_process_netinfo_cell(), check_descriptor_bandwidth_changed(), check_network_participation_callback(), check_private_dir(), choose_good_middle_server(), circuit_build_no_more_hops(), circuit_build_times_parse_state(), circuit_get_open_circ_or_launch(), circuit_mark_for_close_(), circuit_note_clock_jumped(), circuit_testing_failed(), circuits_handle_oom(), collect_period_statistics(), command_process_create_cell(), compute_num_cpus(), compute_num_cpus_impl(), compute_weighted_bandwidths(), config_assign_value(), config_load_geoip_file_(), conn_close_if_marked(), connection_ap_handle_onion(), connection_ap_process_http_connect(), connection_buf_read_from_socket(), connection_dump_buffer_mem_stats(), connection_ext_or_auth_handle_client_hash(), connection_ext_or_auth_handle_client_nonce(), connection_ext_or_auth_neg_auth_type(), connection_ext_or_handle_cmd_useraddr(), connection_ext_or_process_inbuf(), connection_ext_or_start_auth(), connection_free_minimal(), connection_handle_write_impl(), connection_or_connect(), cpuworker_init(), create_family_id_key(), desc_encode_v3(), desc_sig_is_valid(), dirserv_add_descriptor(), dirserv_add_extrainfo(), dirserv_load_fingerprint_file(), do_hup(), do_list_fingerprint(), dumpmemusage(), dumpstats(), ed25519_checksig_prefixed(), ed25519_sign_prefixed(), extrainfo_dump_to_string(), extrainfo_dump_to_string_stats_helper(), finish_daemon(), geoip_get_transport_history(), geoip_load_file(), geoip_note_client_seen(), geoip_parse_entry(), guard_obeys_md_dirserver_restriction(), handle_methods_done(), handle_missing_protocol_warning_impl(), handle_proxy_line(), handle_response_upload_dir(), handle_response_upload_signatures(), handle_response_upload_vote(), hibernate_begin(), hs_cache_store_as_client(), hs_circ_service_rp_has_opened(), hs_client_decode_descriptor(), hs_desc_decode_descriptor(), hs_get_responsible_hsdirs(), hs_service_dump_stats(), init_cookie_authentication(), init_curve25519_keypair_from_file(), init_key_from_file(), init_keys(), ip_address_changed(), libevent_logging_callback(), log_addr_has_changed(), log_cert_lifetime(), log_credential_status(), log_new_relay_greeting(), maintain_layer2_guards(), make_path_absolute(), microdesc_note_outdated_dirserver(), networkstatus_reset_download_failures(), nodefamily_from_members(), nodelist_ensure_freshness(), note_user_activity(), notify_waitpid_callback_by_pid(), onion_pending_add(), options_act(), options_act_bridge_stats(), options_act_relay(), options_commit_listener_transaction(), options_commit_log_transaction(), options_validate_server_transport(), or_state_load(), or_state_save(), or_state_set(), parse_iso_time_(), parse_port_range(), parse_rfc1123_time(), pathbias_check_close_success_count(), pathbias_check_use_success_count(), periodic_events_rescan_by_roles(), process_environment_make(), process_signal(), prune_old_routers_callback(), pt_configure_remaining_proxies(), pt_parse_transport_line(), pubsub_builder_finalize(), register_client_proxy(), register_server_proxy(), reload_consensus_from_file(), rend_mid_rendezvous(), rep_hist_hsdir_stored_maybe_new_v3_onion(), rep_hist_seen_new_rp_cell(), replyqueue_process(), rotate_onion_key(), rotate_x509_certificate_callback(), router_announce_bridge_status_page(), router_get_my_descriptor(), router_load_extrainfo_from_string(), router_load_routers_from_string(), router_parse_addr_policy_private(), router_reset_descriptor_download_failures(), router_should_be_dirserver(), router_upload_dir_desc_to_dirservers(), router_write_fingerprint(), routerlist_retry_directory_downloads(), routers_update_all_from_networkstatus(), sandbox_init(), save_stability_callback(), scheduled_shutdown_cb(), start_daemon(), store_permanent_client_auth_credentials(), string_is_key_value(), subsystems_init_upto(), subsystems_postfork(), subsystems_prefork(), subsystems_shutdown_downto(), subsystems_thread_cleanup(), switch_id(), threadpool_free_(), threadpool_start_threads(), threadpool_stop_threads(), tor_addr_parse_mask_ports(), tor_addr_port_split(), tor_compress_impl(), tor_compress_is_compression_bomb(), tor_compress_process(), tor_cond_uninit(), tor_getpwnam(), tor_init(), tor_libevent_initialize(), tor_log_update_sigsafe_err_fds(), tor_lzma_compress_new(), tor_lzma_compress_process(), tor_mlockall(), tor_zlib_compress_process(), tor_zstd_compress_new(), tor_zstd_compress_process(), tor_zstd_warn_if_version_mismatched(), transport_add_from_config(), transport_resolve_conflicts(), try_locking(), tv_mdiff(), tv_udiff(), warn_early_consensus(), worker_thread_main(), and workerthread_new().
| #define LD_GUARD (UINT64_C(1)<<23) |
Guard nodes
Definition at line 109 of file log.h.
Referenced by choose_guard_selection(), circuit_upgrade_circuits_from_guard_wait(), create_initial_guard_context(), entry_guard_add_to_sample(), entry_guard_consider_retry(), entry_guard_parse_from_state(), entry_guard_set_filtered_flags(), entry_guards_expand_sample(), entry_guards_note_guard_failure(), entry_guards_note_guard_success(), entry_guards_update_primary(), entry_guards_upgrade_waiting_circuits(), first_reachable_filtered_entry_guard(), get_guard_selection_by_name(), guard_create_dirserver_md_restriction(), make_guard_confirmed(), sampled_guards_prune_obsolete_entries(), sampled_guards_update_consensus_presence(), sampled_guards_update_from_consensus(), select_confirmed_guard_for_circuit(), select_entry_guard_for_circuit(), select_filtered_guard_for_circuit(), select_primary_guard_for_circuit(), should_set_md_dirserver_restriction(), and update_guard_selection_choice().
| #define LD_HANDSHAKE (UINT64_C(1)<<19) |
OR handshaking
Definition at line 101 of file log.h.
Referenced by channel_tls_process_authenticate_cell(), channel_tls_process_certs_cell(), connection_or_client_learned_peer_id(), connection_or_finished_connecting(), connection_or_init_conn_from_address(), connection_or_note_state_when_broken(), connection_or_set_identity_digest(), connection_tls_start_handshake(), and control_event_bootstrap_problem().
| #define LD_HEARTBEAT (UINT64_C(1)<<20) |
Heartbeat messages
Definition at line 103 of file log.h.
Referenced by circuit_log_ancient_one_hop_circuits(), log_heartbeat(), log_onion_service_stats(), rep_hist_log_circuit_handshake_stats(), and rep_hist_log_link_protocol_counts().
| #define LD_HIST (UINT64_C(1)<<18) |
Router history
Definition at line 99 of file log.h.
Referenced by bwhist_load_bwhist_state_section(), check_or_create_data_subdir(), overload_general_onionskin_assessment(), rep_hist_desc_stats_write(), rep_hist_downrate_old_runs(), rep_hist_dump_stats(), rep_hist_exit_stats_write(), rep_hist_load_mtbf_data(), rep_hist_note_exit_bytes(), rep_hist_note_exit_stream_opened(), rep_hist_note_router_reachable(), rep_hist_note_router_unreachable(), rep_hist_record_mtbf_data(), and write_to_data_subdir().
| #define LD_HTTP (UINT64_C(1)<<7) |
HTTP implementation.
Definition at line 76 of file log.h.
Referenced by connection_dir_client_reached_eof(), connection_dir_finished_connecting(), connection_dir_process_inbuf(), connection_dir_reached_eof(), fetch_from_buf_http(), parse_http_response(), and warn_disallowed_anonymous_compression_method().
| #define LD_MESG (UINT64_C(1)<<29) |
Message-passing backend.
Definition at line 121 of file log.h.
Referenced by dispatch_send_msg_unchecked(), dispatcher_run_msg_cbs(), lint_message(), lint_message_consistency(), lint_message_graph(), and pubsub_cfg_dump().
| #define LD_MM (UINT64_C(1)<<6) |
Memory management.
Definition at line 74 of file log.h.
Referenced by dump_cell_pool_usage(), dump_dns_mem_usage(), and policies_free_all().
| #define LD_NET (UINT64_C(1)<<2) |
Networking.
Definition at line 66 of file log.h.
Referenced by check_sockaddr(), client_check_address_changed(), compute_frac_paths_available(), conn_close_if_marked(), conn_read_callback(), conn_write_callback(), connection_add_impl(), connection_ap_handshake_rewrite_and_attach(), connection_buf_read_from_socket(), connection_check_oos(), connection_close_immediate(), connection_connect(), connection_connect_sockaddr(), connection_consider_empty_read_buckets(), connection_consider_empty_write_buckets(), connection_expire_held_open(), connection_ext_or_handle_cmd_transport(), connection_ext_or_handle_cmd_useraddr(), connection_ext_or_process_inbuf(), connection_free_minimal(), connection_handle_listener_read(), connection_handle_write_impl(), connection_listener_new(), connection_or_process_inbuf(), connection_or_send_authenticate_cell(), connection_proxy_connect(), connection_read_https_proxy_response(), connection_read_proxy_handshake(), connection_remove(), connection_socks4_proxy_connect(), connection_start_reading(), connection_start_writing(), connection_stop_reading(), connection_stop_writing(), connection_write_to_buf_failed(), dirclient_dump_total_dls(), directory_all_unreachable_cb(), directory_initiate_request(), dirserv_generate_networkstatus_vote_obj(), dirvote_perform_vote(), dumpstats(), flush_chunk(), flush_chunk_tls(), get_address_from_hostname(), get_interface_address6(), get_interface_address6_via_udp_socket_hack(), hibernate_go_dormant(), hs_get_extend_info_from_lspecs(), kill_conn_list_for_oos(), libevent_logging_callback(), log_cert_lifetime(), log_failed_proxy_connection(), network_init(), options_start_listener_transaction(), parse_single_entry(), parse_socks_client(), pick_oos_victims(), protover_all_supported(), protover_compute_vote(), read_to_chunk(), resolved_addr_set_last(), retry_all_listeners(), router_set_status(), run_main_loop_once(), set_constrained_socket_buffers(), set_max_file_descriptors(), set_socket_nonblocking(), tor_accept_socket_with_extensions(), tor_close_socket_simple(), tor_tls_create_certificate(), tor_tls_handshake(), and tor_tls_release_socket().
| #define LD_NOCB (UINT64_C(1)<<62) |
This log message is not safe to send to a callback-based logger immediately. Used as a flag, not a log domain.
Definition at line 144 of file log.h.
Referenced by libevent_logging_callback(), logfile_deliver(), and logv().
| #define LD_NOFUNCNAME (UINT64_C(1)<<63) |
This log message should not include a function name, even if it otherwise would. Used as a flag, not a log domain.
Definition at line 147 of file log.h.
Referenced by should_log_function_name().
| #define LD_OR (UINT64_C(1)<<15) |
Onion routing protocol.
Definition at line 92 of file log.h.
Referenced by assign_onionskin_to_cpuworker(), can_process_netinfo_cell(), channel_check_for_duplicates(), channel_send_destroy(), channel_tls_handle_var_cell(), channel_tls_process_auth_challenge_cell(), channel_tls_process_certs_cell(), channel_tls_process_netinfo_cell(), channel_tls_process_padding_negotiate_cell(), channel_tls_process_versions_cell(), channelpadding_reduce_padding_on_channel(), channelpadding_send_padding_callback(), channelpadding_send_padding_cell_for_callback(), channelpadding_update_padding_for_channel(), circuit_build_failed(), circuit_extend(), circuit_receive_relay_cell(), cmux_ewma_set_options(), command_process_cell(), command_process_create_cell(), command_process_created_cell(), command_process_destroy_cell(), command_process_relay_cell(), connection_https_proxy_connect(), connection_or_compute_authenticate_cell_body(), connection_or_group_set_badness_(), connection_or_process_cells_from_inbuf(), connection_or_reached_eof(), connection_or_send_netinfo(), connection_or_single_set_badness_(), connection_tls_continue_handshake(), cpuworker_log_onionskin_overhead(), cpuworker_onion_handshake_replyfn(), cpuworker_onion_handshake_threadfn(), cpuworkers_rotate_keyinfo(), create_keys_directory(), dirserv_single_reachability_test(), do_hup(), ed_key_init_from_file(), enter_v3_handshake_with_cell(), errno_to_orconn_end_reason(), generate_ed_link_cert(), inform_testing_reachability(), list_family_key_files_impl(), load_ed_keys(), load_family_id_keys(), load_family_id_keys_impl(), log_ed_cert_expiration(), log_master_signing_key_cert_expiration(), make_tap_onion_key_crosscert(), mark_my_descriptor_dirty(), onion_next_task(), onion_pending_add(), queue_pending_tasks(), relay_decrypt_cell(), relay_send_command_from_edge_(), rotate_x509_certificate_callback(), router_dump_router_to_string(), router_orport_found_reachable(), router_perform_bandwidth_test(), router_rebuild_descriptor(), router_upload_dir_desc_to_dirservers(), run_connection_housekeeping(), tor_addr_from_netinfo_addr(), and warn_about_family_id_config().
| #define LD_PROCESS (UINT64_C(1)<<26) |
Processes
Definition at line 115 of file log.h.
Referenced by process_exec(), process_notify_event_exit(), process_read_buffer(), process_read_lines(), process_terminate(), process_unix_close_file_descriptors(), process_unix_exec(), process_unix_read_handle(), process_unix_setup_handle(), process_unix_start_reading(), process_unix_start_writing(), process_unix_stop_reading(), process_unix_stop_writing(), and process_unix_terminate().
| #define LD_PROTOCOL (UINT64_C(1)<<5) |
Other servers' (non)compliance with the Tor protocol.
Definition at line 72 of file log.h.
Referenced by append_cell_to_circuit_queue(), begin_cell_parse(), channel_tls_handle_cell(), channel_tls_handle_var_cell(), channel_tls_process_certs_cell(), channelpadding_update_padding_for_channel(), circuit_end_reason_to_control_string(), circuit_extend(), circuit_finish_handshake(), circuit_handle_first_hop(), circuit_is_suitable_for_introduce1(), circuit_is_suitable_intro_point(), circuit_receive_relay_cell(), command_process_cell(), command_process_create_cell(), command_process_created_cell(), command_process_relay_cell(), connection_dir_client_reached_eof(), connection_edge_process_relay_cell(), connection_edge_process_relay_cell_not_open(), connection_edge_process_resolved_cell(), connection_exit_begin_conn(), connection_or_connect(), connection_read_https_proxy_response(), directory_handle_command(), fetch_from_buf_http(), handle_establish_intro(), handle_introduce1(), handle_relay_msg(), handle_verified_establish_intro_cell(), hs_client_receive_introduce_ack(), hs_client_receive_rendezvous2(), hs_client_receive_rendezvous_acked(), hs_get_extend_info_from_lspecs(), hs_intro_received_establish_intro(), hs_intro_received_introduce1(), hs_service_receive_intro_established(), hs_service_receive_introduce2(), node_get_ed25519_id(), onion_skin_ntor_client_handshake(), parse_introduce2_cell(), pathbias_check_probe_response(), process_socks4_request(), process_socks5_client_request(), reachable_addr_choose_from_ls(), relay_address_new_suggestion(), relay_decrypt_cell(), relay_send_command_from_edge_(), rend_mid_establish_rendezvous(), rend_mid_rendezvous(), rend_process_relay_cell(), run_connection_housekeeping(), sendme_process_circuit_level_impl(), stream_end_reason_to_socks5_response(), stream_end_reason_to_string(), tor_compress_impl(), validate_introduce1_parsed_cell(), and verify_establish_intro_cell().
| #define LD_PT (UINT64_C(1)<<27) |
Pluggable Transports.
Definition at line 117 of file log.h.
Referenced by handle_proxy_line(), managed_proxy_exit_callback(), managed_proxy_set_state(), managed_proxy_stderr_callback(), parse_log_line(), parse_status_line(), proxy_prepare_for_restart(), and pt_get_extra_info_descriptor_string().
| #define LD_REND (UINT64_C(1)<<11) |
Hidden services.
Definition at line 84 of file log.h.
Referenced by build_all_descriptors(), build_descriptors_for_new_service(), build_service_desc_keys(), cache_clean_v3_as_client(), cache_clean_v3_as_dir(), cache_clean_v3_by_downloaded_as_dir(), cache_lookup_v3_as_dir(), cache_store_v3_as_dir(), can_client_refetch_desc(), can_relaunch_service_rendezvous_point(), can_service_launch_intro_circuit(), cell_dos_extension_parameters_are_valid(), cell_queues_check_size(), cert_is_valid(), cert_parse_and_validate(), circuit_build_failed(), circuit_get_open_circ_or_launch(), circuit_is_suitable_for_introduce1(), circuit_receive_relay_cell(), client_desc_has_arrived(), client_dir_fetch_200(), client_dir_fetch_400(), client_dir_fetch_404(), client_dir_fetch_unexpected(), client_get_random_intro(), client_intro_circ_has_opened(), client_rendezvous_circ_has_opened(), close_all_socks_conns_waiting_for_desc(), close_directory_connections(), compute_subcredentials(), config_service(), config_service_v3(), connection_ap_expire_beginning(), connection_ap_handle_onion(), connection_ap_handshake_attach_circuit(), consider_sending_introduce1(), decode_create2_list(), decode_intro_legacy_key(), decode_introduction_point(), decode_pow_params(), decrypt_desc_layer(), desc_decode_encrypted_v3(), desc_decode_plaintext_v3(), desc_decode_superencrypted_v3(), desc_decrypt_superencrypted(), desc_sig_is_valid(), directory_launch_v3_desc_fetch(), encode_legacy_key(), encrypted_data_length_is_valid(), enqueue_rend_request(), fetch_v3_desc(), find_and_remove_client_auth_creds_file(), get_creds_from_client_auth_filename(), get_introduce2_keys_and_verify_mac(), handle_establish_intro(), handle_establish_intro_cell_dos_extension(), handle_hs_exit_conn(), handle_introduce1(), handle_introduce2_encrypted_cell_pow_extension(), handle_introduce_ack_bad(), handle_introduce_ack_success(), handle_rendezvous2(), handle_response_fetch_hsdesc_v3(), handle_response_upload_hsdesc(), hs_address_is_valid(), hs_cache_client_intro_state_purge(), hs_cache_purge_as_client(), hs_cache_remove_as_client(), hs_cell_parse_introduce2(), hs_cell_parse_introduce_ack(), hs_cell_parse_rendezvous2(), hs_circ_handle_intro_established(), hs_circ_handle_introduce2(), hs_circ_launch_intro_point(), hs_circ_send_establish_rendezvous(), hs_circ_send_introduce1(), hs_circ_service_intro_has_opened(), hs_circ_service_rp_has_opened(), hs_circuit_setup_e2e_rend_circ(), hs_client_circuit_cleanup_on_free(), hs_client_purge_state(), hs_client_receive_rendezvous2(), hs_client_receive_rendezvous_acked(), hs_client_reextend_intro_circuit(), hs_client_setup_intro_circ_auth_key(), hs_config_client_authorization(), hs_desc_decode_plaintext(), hs_get_extend_info_from_lspecs(), hs_get_responsible_hsdirs(), hs_ob_parse_config_file(), hs_parse_address(), hs_pick_hsdir(), hs_pow_solve(), hs_pow_verify(), hs_purge_last_hid_serv_requests(), hs_service_dir_info_changed(), hs_service_load_all_keys(), hs_service_set_conn_addr_port(), hs_set_conn_addr_port(), initialize_pow_defenses(), intro_point_is_usable(), launch_intro_point_circuits(), launch_rendezvous_point_circuit(), load_client_keys(), load_service_keys(), log_cant_upload_desc(), ob_option_parse(), parse_auth_file_content(), parse_authorized_client(), parse_authorized_client_key(), parse_introduce2_encrypted(), parse_introduce_cell_extension(), pick_hsdir_v3(), pick_intro_point(), pick_needed_intro_points(), pow_worker_replyfn(), purge_ephemeral_client_auth(), rend_mid_establish_rendezvous(), rend_mid_rendezvous(), retry_service_rendezvous_point(), rotate_all_descriptors(), rotate_pow_seeds(), run_upload_descriptor_event(), send_establish_intro(), service_handle_intro_established(), service_intro_circ_has_opened(), service_is_duplicate_in_list(), service_rendezvous_circ_has_opened(), set_descriptor_revision_counter(), set_intro_point_onion_key(), set_rotation_time(), setup_desc_intro_point(), should_remove_intro_point(), trim_rend_pqueue(), update_all_descriptors_pow_params(), update_service_descriptor_intro_points(), update_suggested_effort(), upload_descriptor_to_all(), upload_descriptor_to_hsdir(), and write_address_to_file().
| #define LD_SCHED (UINT64_C(1)<<22) |
Scheduler
Definition at line 107 of file log.h.
Referenced by scheduler_ev_add(), scheduler_evt_callback(), scheduler_free_all(), scheduler_set_channel_state(), and select_scheduler().
| #define LOG_DEBUG 7 |
Debug-level severity: for hyper-verbose messages of no interest to anybody but developers.
Definition at line 42 of file log.h.
Referenced by circpad_distribution_sample(), circuit_expire_building(), command_process_relay_cell(), conn_write_callback(), connection_connect_sockaddr(), connection_consider_empty_read_buckets(), connection_consider_empty_write_buckets(), connection_dir_client_reached_eof(), connection_listener_new(), control_event_logmsg(), crypto_pk_obsolete_private_hybrid_decrypt(), debug_logging_enabled(), dirserv_read_measured_bandwidths(), dirserv_would_reject_router(), event_to_log_severity(), extrainfo_insert(), get_min_log_level(), host_header_is_localhost(), log_severity_to_event(), logv(), managed_proxy_severity_parse(), parse_bridge_line(), parse_log_level(), rend_mid_rendezvous(), run_connection_housekeeping(), service_key_on_disk(), set_log_severity_config(), sev_to_string(), should_log_function_name(), and switch_logs_debug().
| #define log_debug | ( | domain, | |
| args, | |||
| ... ) |
| #define LOG_ERR 3 |
Error-level severity: for messages that only appear when something has gone very wrong, and the Tor process can no longer proceed.
Definition at line 56 of file log.h.
Referenced by add_default_log(), control_adjust_event_log_severity(), control_event_client_error(), control_event_general_error(), control_event_logmsg(), control_event_server_error(), control_event_status(), cpath_assert_layer_ok(), event_to_log_severity(), get_min_log_level(), handle_missing_protocol_warning_impl(), init_keys(), load_authority_keyset(), log_severity_to_event(), logv(), managed_proxy_severity_parse(), parse_log_level(), set_log_severity_config(), sev_to_string(), should_log_function_name(), switch_logs_debug(), tor_assertion_failed_(), tor_log_update_sigsafe_err_fds(), and v3_authority_check_key_expiry().
| #define log_err | ( | domain, | |
| args, | |||
| ... ) |
| #define log_fn | ( | severity, | |
| domain, | |||
| args, | |||
| ... ) |
Log a message at level severity, using a pretty-printed version of the current function name.
Definition at line 283 of file log.h.
Referenced by address_can_be_used(), append_cell_to_circuit_queue(), authdir_wants_to_reject_router(), begin_cell_parse(), can_process_netinfo_cell(), cell_dos_extension_parameters_are_valid(), cert_is_valid(), channel_tls_handle_cell(), channel_tls_handle_var_cell(), channel_tls_process_certs_cell(), channel_tls_process_netinfo_cell(), channel_tls_process_padding_negotiate_cell(), channel_tls_process_versions_cell(), channelpadding_reduce_padding_on_channel(), channelpadding_send_padding_callback(), channelpadding_send_padding_cell_for_callback(), channelpadding_update_padding_for_channel(), check_sockaddr(), choose_good_middle_server(), circpad_check_received_cell(), circpad_circuit_machineinfo_free_idx(), circpad_deliver_recognized_relay_cell_events(), circpad_distribution_sample(), circpad_estimate_circ_rtt_on_received(), circpad_estimate_circ_rtt_on_send(), circpad_handle_padding_negotiate(), circpad_handle_padding_negotiated(), circpad_machine_current_state(), circpad_machine_schedule_padding(), circpad_machine_spec_transition(), circpad_machine_spec_transitioned_to_end(), circpad_negotiate_padding(), circpad_node_supports_padding(), circpad_send_command_to_hop(), circpad_send_padding_callback(), circpad_send_padding_cell_for_callback(), circuit_expire_building(), circuit_expire_old_circs_as_needed(), circuit_extend(), circuit_get_open_circ_or_launch(), circuit_handle_first_hop(), circuit_is_suitable_for_introduce1(), circuit_is_suitable_intro_point(), circuit_process_stream_xoff(), circuit_process_stream_xon(), circuit_purpose_to_controller_hs_state_string(), circuit_receive_relay_cell(), client_get_random_intro(), clock_skew_warning(), command_process_cell(), command_process_create_cell(), command_process_created_cell(), command_process_relay_cell(), config_check_ok(), conflux_can_send(), conflux_log_set(), conflux_note_cell_sent(), conflux_process_link(), conflux_process_linked(), conflux_process_linked_ack(), conflux_process_relay_msg(), conflux_validate_legs(), conn_close_if_marked(), conn_write_callback(), connection_ap_expire_beginning(), connection_ap_handshake_attach_circuit(), connection_ap_process_end_not_open(), connection_connect_sockaddr(), connection_edge_process_relay_cell(), connection_edge_process_relay_cell_not_open(), connection_edge_process_resolved_cell(), connection_exit_begin_conn(), connection_expire_held_open(), connection_ext_or_handle_cmd_transport(), connection_ext_or_handle_cmd_useraddr(), connection_listener_new(), connection_or_client_learned_peer_id(), connection_or_process_inbuf(), connection_or_send_authenticate_cell(), control_event_bootstrap_problem(), cpath_assert_layer_ok(), cpuworker_log_onionskin_overhead(), crypto_dh_handshake(), crypto_pk_obsolete_private_hybrid_decrypt(), crypto_pk_read_from_string_generic(), cwnd_sendable(), directory_handle_command(), dirserv_get_status_impl(), dirserv_router_get_status(), dirvote_add_signatures_to_pending_consensus(), enter_v3_handshake_with_cell(), extend_info_from_node(), extrainfo_insert(), find_my_address(), geoip_load_file(), get_address_from_config(), get_address_from_hostname(), get_address_from_interface(), get_address_from_orport(), get_interface_address6_via_udp_socket_hack(), handle_establish_intro(), handle_introduce1(), handle_relay_msg(), handle_response_fetch_consensus(), handle_response_fetch_desc(), handle_response_upload_hsdesc(), hs_get_extend_info_from_lspecs(), hs_intro_received_establish_intro(), hs_intro_received_introduce1(), launch_rendezvous_point_circuit(), launch_resolve(), log_addr_has_changed(), log_credential_status(), log_heartbeat(), microdescs_add_to_cache(), microdescs_parse_from_string(), networkstatus_parse_vote_from_string(), node_get_ed25519_id(), nodefamily_from_members(), onion_skin_ntor_client_handshake(), options_validate_cb(), parse_authorized_client_key(), parse_introduce_cell_extension(), parse_one_diff_hash(), parse_short_policy(), relay_address_new_suggestion(), relay_crypt_from_last_hop(), relay_decrypt_cell(), relay_send_command_from_edge_(), rend_mid_establish_rendezvous(), rend_mid_rendezvous(), rend_process_relay_cell(), router_get_hash_impl_helper(), run_connection_housekeeping(), set_max_file_descriptors(), stream_end_reason_to_socks5_response(), stream_end_reason_to_string(), switch_id(), tls_log_errors(), tor_addr_from_netinfo_addr(), tor_addr_port_split(), tor_check_dh_key(), tor_compress_impl(), tor_tls_cert_is_valid(), try_finalize_set(), validate_introduce1_parsed_cell(), validate_unlinked_legs(), verify_establish_intro_cell(), and warn_disallowed_anonymous_compression_method().
| #define log_fn_ratelim | ( | ratelim, | |
| severity, | |||
| domain, | |||
| args, | |||
| ... ) |
As log_fn, but use ratelim (an instance of ratelim_t) to control the frequency at which messages can appear.
Definition at line 288 of file log.h.
Referenced by cache_store_v3_as_dir(), cell_queues_check_size(), channelpadding_update_padding_for_channel(), circpad_estimate_circ_rtt_on_received(), circpad_estimate_circ_rtt_on_send(), circpad_machine_schedule_padding(), circpad_send_padding_cell_for_callback(), circuit_build_failed(), circuit_deliver_create_cell(), circuit_expire_building(), conflux_circuit_has_opened(), conflux_decide_circ_for_send(), conflux_dequeue_relay_msg(), conflux_process_relay_msg(), conflux_send_switch_command(), congestion_control_dispatch_cc_alg(), congestion_control_update_circuit_bdp(), congestion_control_update_circuit_rtt(), connection_connect_sockaddr(), evdns_log_cb(), extrainfo_insert(), hs_service_dir_info_changed(), hs_service_set_conn_addr_port(), load_ed_keys(), log_cant_upload_desc(), log_unsafe_socks_warning(), pick_restricted_middle_node(), pick_vanguard_middle_node(), proxy_prepare_for_restart(), reachability_warnings_callback(), relay_find_addr_to_publish(), replyqueue_process(), router_should_check_reachability(), run_main_loop_once(), select_primary_guard_for_circuit(), sendme_process_circuit_level_impl(), store_multiple(), and time_delta_stalled_or_jumped().
| #define LOG_INFO 6 |
Info-level severity: for messages that appear frequently during normal operation.
Definition at line 45 of file log.h.
Referenced by add_wildcarded_test_address(), authdir_wants_to_reject_router(), channel_tls_handle_cell(), channel_tls_handle_var_cell(), channelpadding_reduce_padding_on_channel(), channelpadding_send_padding_callback(), channelpadding_send_padding_cell_for_callback(), channelpadding_update_padding_for_channel(), choose_good_middle_server(), circpad_circuit_machineinfo_free_idx(), circpad_deliver_recognized_relay_cell_events(), circpad_estimate_circ_rtt_on_received(), circpad_machine_schedule_padding(), circpad_machine_spec_transition(), circpad_machine_spec_transitioned_to_end(), circpad_negotiate_padding(), circpad_node_supports_padding(), circpad_send_padding_cell_for_callback(), circuit_expire_building(), circuit_expire_old_circs_as_needed(), circuit_finish_handshake(), circuit_get_open_circ_or_launch(), client_check_address_changed(), clock_skew_warning(), command_process_cell(), config_load_geoip_file_(), conn_close_if_marked(), connection_ap_expire_beginning(), connection_ap_handshake_attach_circuit(), connection_ap_process_end_not_open(), connection_connect_sockaddr(), connection_edge_process_relay_cell_not_open(), connection_expire_held_open(), connection_ext_or_handle_cmd_useraddr(), connection_handle_listener_read(), connection_or_client_learned_peer_id(), control_event_bootstrap(), control_event_bootstrap_problem(), control_event_logmsg(), crypto_pk_obsolete_private_hybrid_decrypt(), crypto_pk_private_decrypt(), crypto_pk_read_private_key1024_from_string(), crypto_pk_read_private_key_from_string(), crypto_pk_read_public_key_from_string(), dirauth_sched_recalculate_timing(), directory_info_has_arrived(), directory_initiate_request(), directory_remove_invalid(), dirvote_add_signatures_to_all_pending_consensuses(), evdns_log_cb(), evdns_wildcard_check_callback(), event_to_log_severity(), extrainfo_insert(), handle_control_add_onion(), handle_response_fetch_consensus(), handle_response_fetch_desc(), hs_circ_service_intro_has_opened(), hs_circ_service_rp_has_opened(), hs_service_dir_info_changed(), keypin_load_journal_impl(), load_ed_keys(), load_service_keys(), log_cant_upload_desc(), log_heartbeat(), log_severity_to_event(), managed_proxy_set_state(), managed_proxy_severity_parse(), networkstatus_check_consensus_signature(), nodefamily_from_members(), nodelist_set_routerinfo(), onion_skin_ntor_client_handshake(), options_act(), options_commit_log_transaction(), options_validate_cb(), parse_bridge_line(), parse_dir_fallback_line(), parse_log_level(), policies_parse_exit_policy_reject_private(), process_signal(), relay_find_addr_to_publish(), router_get_networkstatus_v3_signed_boundaries(), set_max_file_descriptors(), sev_to_string(), should_log_function_name(), time_delta_stalled_or_jumped(), tor_process_monitor_poll_cb(), tor_tls_cert_is_valid(), tor_x509_cert_decode(), update_router_have_minimum_dir_info(), and wildcard_increment_answer().
| #define log_info | ( | domain, | |
| args, | |||
| ... ) |
| #define LOG_NOTICE 5 |
Notice-level severity: for messages that appear infrequently during normal operation; that the user will probably care about; and that are not errors.
Definition at line 50 of file log.h.
Referenced by add_default_log_for_quiet_level(), add_wildcarded_test_address(), authdir_wants_to_reject_router(), cache_store_v3_as_dir(), cell_queues_check_size(), check_descriptor_ipaddress_changed(), choose_good_middle_server(), circpad_estimate_circ_rtt_on_received(), circpad_estimate_circ_rtt_on_send(), circpad_send_padding_cell_for_callback(), circuit_build_failed(), circuit_build_no_more_hops(), circuit_expire_building(), circuit_get_open_circ_or_launch(), circuit_note_clock_jumped(), conflux_circuit_has_opened(), conflux_dequeue_relay_msg(), congestion_control_dispatch_cc_alg(), congestion_control_update_circuit_bdp(), congestion_control_update_circuit_rtt(), connection_ap_expire_beginning(), connection_ap_handshake_attach_circuit(), connection_expire_held_open(), connection_listener_new(), control_event_bootstrap(), control_event_bootstrap_core(), control_event_logmsg(), control_event_status(), directory_info_has_arrived(), dirvote_add_signatures_to_all_pending_consensuses(), dirvote_fetch_missing_votes(), ed_key_init_from_file(), evdns_log_cb(), evdns_wildcard_check_callback(), event_to_log_severity(), handle_response_upload_dir(), inform_testing_reachability(), keypin_load_journal_impl(), log_heartbeat(), log_new_relay_greeting(), log_severity_to_event(), log_tor_version(), managed_proxy_severity_parse(), networkstatus_set_current_consensus(), node_log_dup_ed_id(), on_hibernate_state_change(), options_validate_cb(), parse_log_level(), pick_restricted_middle_node(), reachability_warnings_callback(), relay_find_addr_to_publish(), resolved_addr_set_last(), router_orport_found_reachable(), select_primary_guard_for_circuit(), sev_to_string(), should_log_function_name(), time_delta_stalled_or_jumped(), tor_process_monitor_poll_cb(), tor_tls_read(), tor_tls_write(), update_router_have_minimum_dir_info(), validate_unlinked_legs(), and wildcard_increment_answer().
| #define log_notice | ( | domain, | |
| args, | |||
| ... ) |
| #define LOG_WARN 4 |
Warn-level severity: for messages that only appear when something has gone wrong.
Definition at line 53 of file log.h.
Referenced by add_default_log_for_quiet_level(), add_wildcarded_test_address(), authority_cert_parse_from_string(), channel_tls_process_certs_cell(), circpad_estimate_circ_rtt_on_send(), circpad_machine_current_state(), circpad_send_command_to_hop(), circpad_send_padding_callback(), circuit_deliver_create_cell(), circuit_get_open_circ_or_launch(), circuit_note_clock_jumped(), circuit_package_relay_cell(), circuit_purpose_to_controller_hs_state_string(), clock_skew_warning(), command_process_relay_cell(), config_load_geoip_file_(), conflux_can_send(), conflux_decide_circ_for_send(), conflux_dequeue_relay_msg(), conflux_pick_first_leg(), conflux_process_relay_msg(), conflux_send_switch_command(), conflux_validate_legs(), conn_write_callback(), connection_ap_handshake_attach_circuit(), connection_ap_handshake_rewrite_and_attach(), connection_ap_mark_as_pending_circuit_(), connection_ap_process_http_connect(), connection_check_event(), connection_connect_sockaddr(), connection_or_client_learned_peer_id(), consider_plaintext_ports(), control_event_bootstrap_problem(), control_event_logmsg(), control_event_status(), crypto_dh_generate_public(), crypto_dh_handshake(), crypto_pk_asn1_decode_private(), crypto_pk_generate_key_with_bits(), crypto_pk_obsolete_private_hybrid_decrypt(), crypto_pk_private_decrypt(), crypto_pk_private_sign(), crypto_pk_public_encrypt(), crypto_pk_read_private_key_from_filename(), dirserv_generate_networkstatus_vote_obj(), entry_guard_parse_from_state(), evdns_log_cb(), event_to_log_severity(), extrainfo_insert(), extrainfo_parse_entry_from_string(), get_bindaddr_from_transport_listen_line(), get_options_from_transport_options_line(), get_unique_circ_id_by_chan(), handle_missing_protocol_warning_impl(), handle_relay_msg(), handle_response_fetch_consensus(), handle_response_fetch_desc(), handle_response_upload_dir(), hs_service_set_conn_addr_port(), init_protocol_warning_severity_level(), linked_circuit_free(), lint_message(), load_ed_keys(), load_service_keys(), log_cert_lifetime(), log_fn_(), log_severity_to_event(), log_unsafe_socks_warning(), managed_proxy_severity_parse(), networkstatus_check_consensus_signature(), new_openssl_dh_from_params(), nodefamily_from_members(), onion_skin_ntor_client_handshake(), options_act(), options_validate_dirauth_mode(), parse_authorized_client(), parse_dir_authority_line(), parse_dir_fallback_line(), parse_dirauth_dirport(), parse_log_level(), parse_method_line_helper(), parse_socks(), pick_vanguard_middle_node(), proxy_prepare_for_restart(), reachability_warnings_callback(), replyqueue_process(), router_get_hash_impl(), router_get_hashes_impl(), router_parse_entry_from_string(), router_should_check_reachability(), routers_update_all_from_networkstatus(), run_main_loop_once(), sendme_process_circuit_level_impl(), sev_to_string(), should_log_function_name(), store_multiple(), tor_addr_port_lookup(), tor_bug_occurred_(), tor_compress(), tor_tls_context_init(), tor_tls_create_certificate(), tor_tls_export_key_material(), tor_tls_get_pending_bytes(), tor_tls_new(), trusted_dir_server_new(), uncompress_or_set_ptr(), v3_authority_check_key_expiry(), validate_transport_socks_arguments(), and warn_if_last_router_excluded().
| #define log_warn | ( | domain, | |
| args, | |||
| ... ) |
| #define LOWEST_RESERVED_LD_FLAG_ (UINT64_C(1)<<(64 - N_LOGGING_FLAGS)) |
| #define N_LOGGING_DOMAINS 30 |
| typedef void(* log_callback) (int severity, log_domain_mask_t domain, const char *msg) |
| int add_callback_log | ( | const log_severity_list_t * | severity, |
| log_callback | cb ) |
Add a log handler to send messages in severity to the function cb.
Definition at line 983 of file log.c.
Referenced by options_commit_log_transaction().
| void add_default_log | ( | int | min_severity | ) |
Add a log handler to accept messages when no other log is configured.
Definition at line 950 of file log.c.
Referenced by add_default_log_for_quiet_level().
| int add_file_log | ( | const log_severity_list_t * | severity, |
| const char * | filename, | ||
| int | fd ) |
Add a log handler to send messages to filename via fd. If opening the logfile failed, -1 is returned and errno is set appropriately (by open(2)). Takes ownership of fd.
Definition at line 1154 of file log.c.
Referenced by open_and_add_file_log().
| void add_stream_log | ( | const log_severity_list_t * | severity, |
| const char * | name, | ||
| int | fd ) |
Add a log handler named name to send all messages in severity to fd. Steals a reference to severity; the caller must not use it after calling this function.
Definition at line 907 of file log.c.
Referenced by options_init_logs().
| void change_callback_log_severity | ( | int | loglevelMin, |
| int | loglevelMax, | ||
| log_callback | cb ) |
Adjust the configured severity of any logs whose callback function is cb.
Definition at line 1003 of file log.c.
Referenced by control_adjust_event_log_severity().
| void close_temp_logs | ( | void | ) |
Close any log handlers marked by mark_logs_temp().
Definition at line 1101 of file log.c.
Referenced by options_commit_log_transaction(), and rollback_log_changes().
|
inlinestatic |
Return true iff debug logging is enabled for at least one domain.
Definition at line 217 of file log.h.
Referenced by dispatch_send_msg_unchecked(), and dispatcher_run_msg_cbs().
| void flush_log_messages_from_startup | ( | void | ) |
Flush all the messages we stored from startup while waiting for log initialization.
Definition at line 1064 of file log.c.
Referenced by options_commit_log_transaction().
| void flush_pending_log_callbacks | ( | void | ) |
If there are any log messages that were generated with LD_NOCB waiting to be sent to callback-based loggers, send them now.
Definition at line 1022 of file log.c.
Referenced by logv(), and queued_events_flush_all().
| int get_min_log_level | ( | void | ) |
Return the least severe log level that any current log is interested in.
Definition at line 1432 of file log.c.
Referenced by add_callback_log(), add_file_log(), add_stream_log_impl(), change_callback_log_severity(), close_temp_logs(), options_commit_log_transaction(), options_start_log_transaction(), process_signal(), and switch_logs_debug().
| void init_logging | ( | int | disable_startup_queue | ) |
| void log_fn_ | ( | int | severity, |
| log_domain_mask_t | domain, | ||
| const char * | fn, | ||
| const char * | format, | ||
| ... ) |
Implementation of the log_fn backend, used when we have variadic macros. All arguments are as for log_fn, except for fn, which is the name of the calling function.
Definition at line 706 of file log.c.
Referenced by tor_log_string().
| void log_fn_ratelim_ | ( | struct ratelim_t * | ratelim, |
| int | severity, | ||
| log_domain_mask_t | domain, | ||
| const char * | funcname, | ||
| const char * | format, | ||
| ... ) |
| const char * log_level_to_string | ( | int | level | ) |
| int log_message_is_interesting | ( | int | severity, |
| log_domain_mask_t | domain ) |
Return true if some of the running logs might be interested in a log message of the given severity in the given domains. If this function returns true, the log message might be ignored anyway, but if it returns false, it is definitely_ safe not to log the message.
| void log_set_application_name | ( | const char * | name | ) |
Set the "application name" for the logs to name: we'll use this name in the message we write when starting up, and at the start of each new log.
Tor uses this string to write the version number to the log file.
Definition at line 212 of file log.c.
Referenced by tor_init().
| void logs_flush_sigsafe | ( | void | ) |
Flush the signal-safe log files.
This function is safe to call from a signal handler. It is currently called by the BUG() macros, when terminating the process on an abnormal condition.
Definition at line 796 of file log.c.
Referenced by tor_abort_().
| void logs_free_all | ( | void | ) |
| void logs_set_domain_logging | ( | int | enabled | ) |
Set whether we report logging domains as a part of our log messages.
Definition at line 940 of file log.c.
Referenced by options_init_logs().
| void logs_set_pending_callback_callback | ( | pending_callback_callback | cb | ) |
Register "cb" as the callback to call when there are new pending log callbacks to be flushed with flush_pending_log_callbacks().
Note that this callback, if present, can be invoked from any thread.
This callback must not log.
It is intentional that this function contains the name "callback" twice: it sets a "callback" to be called on the condition that there is a "pending callback".
Definition at line 973 of file log.c.
Referenced by options_commit_log_transaction().
| void mark_logs_temp | ( | void | ) |
Configure all log handles to be closed by close_temp_logs().
Definition at line 1137 of file log.c.
Referenced by options_start_log_transaction().
| int parse_log_level | ( | const char * | level | ) |
If level is a valid log severity, return the corresponding numeric value. Otherwise, return -1.
Definition at line 1220 of file log.c.
Referenced by parse_log_severity_config().
| int parse_log_severity_config | ( | const char ** | cfg_ptr, |
| log_severity_list_t * | severity_out ) |
Parse a log severity pattern in *cfg_ptr. Advance cfg_ptr after the end of the severityPattern. Set the value of severity_out to the parsed pattern. Return 0 on success, -1 on failure.
The syntax for a SeverityPattern is:
SeverityPattern = *(DomainSeverity SP)* DomainSeverity
DomainSeverity = (DomainList SP)? SeverityRange
SeverityRange = MinSeverity ("-" MaxSeverity )?
DomainList = "[" (SP? DomainSpec SP? ",") SP? DomainSpec "]"
DomainSpec = "*" | Domain | "~" Domain
A missing MaxSeverity defaults to ERR. Severities and domains are case-insensitive. "~" indicates negation for a domain; negation happens last inside a DomainList. Only one SeverityRange without a DomainList is allowed per line.
Definition at line 1328 of file log.c.
Referenced by options_init_logs().
| void rollback_log_changes | ( | void | ) |
Make all currently temporary logs (set to be closed by close_temp_logs) live again, and close all non-temporary logs.
Definition at line 1125 of file log.c.
Referenced by options_rollback_log_transaction().
| void set_log_severity_config | ( | int | loglevelMin, |
| int | loglevelMax, | ||
| log_severity_list_t * | severity_out ) |
Adjust a log severity configuration in severity_out to contain every domain between loglevelMin and loglevelMax, inclusive.
Definition at line 873 of file log.c.
Referenced by add_default_log(), and change_callback_log_severity().
| void set_log_time_granularity | ( | int | granularity_msec | ) |
Define log time granularity for all logs to be granularity_msec milliseconds.
Definition at line 248 of file log.c.
Referenced by options_init_log_granularity().
| void switch_logs_debug | ( | void | ) |
Switch all logs to output at most verbose level.
Definition at line 1447 of file log.c.
Referenced by process_signal().
| void tor_log | ( | int | severity, |
| log_domain_mask_t | domain, | ||
| const char * | format, | ||
| ... ) |
Output a message to the log. It gets logged to all logfiles that care about messages with severity in domain. The content is formatted printf-style based on format and extra arguments.
Definition at line 591 of file log.c.
Referenced by add_wildcarded_test_address(), channel_dump_statistics(), channel_dumpstats(), channel_listener_dump_statistics(), channel_listener_dumpstats(), circuit_dump_conn_details(), circuit_log_path(), circuit_note_clock_jumped(), connection_dir_client_reached_eof(), connection_dump_buffer_mem_stats(), connection_or_report_broken_states(), control_event_bootstrap_core(), crypto_openssl_log_errors(), directory_info_has_arrived(), dns_resolve_impl(), dump_cell_pool_usage(), dump_dns_mem_usage(), dump_routerlist_mem_usage(), dumpmemusage(), dumpstats(), ed_key_init_from_file(), evdns_log_cb(), evdns_wildcard_check_callback(), handle_missing_protocol_warning_impl(), handle_response_fetch_consensus(), hs_service_dump_stats(), init_curve25519_keypair_from_file(), init_key_from_file(), keypin_load_journal_impl(), log_cert_lifetime(), log_new_relay_greeting(), managed_proxy_set_state(), networkstatus_add_detached_signatures(), networkstatus_check_consensus_signature(), parse_log_line(), pubsub_cfg_dump(), rep_hist_dump_stats(), string_is_key_value(), tor_process_monitor_poll_cb(), update_router_have_minimum_dir_info(), v3_authority_check_key_expiry(), and wildcard_increment_answer().
| void tor_log_get_logfile_names | ( | smartlist_t * | out | ) |
| void tor_log_string | ( | int | severity, |
| log_domain_mask_t | domain, | ||
| const char * | function, | ||
| const char * | string ) |
| void tor_log_update_sigsafe_err_fds | ( | void | ) |
Function to call whenever the list of logs changes to get ready to log from signal handlers.
Definition at line 626 of file log.c.
Referenced by options_commit_log_transaction().
| void truncate_logs | ( | void | ) |
|
extern |
|
extern |
|
extern |
What's the lowest log level anybody cares about? Checking this lets us bail out early from log_debug if we aren't debugging.
Definition at line 188 of file log.c.
Referenced by add_callback_log(), add_file_log(), add_stream_log_impl(), change_callback_log_severity(), close_temp_logs(), debug_logging_enabled(), log_fn_(), log_message_is_interesting(), switch_logs_debug(), and tor_log().
|
extern |
This defines log levels that are linked in the Rust log module, rather than re-defining these in both Rust and C.
C_RUST_COUPLED src/rust/tor_log LogSeverity, LogDomain
Defining compile-time constants for Tor log levels (used by the Rust log wrapper at src/rust/tor_log)