Main Page | Modules | Namespace List | Class List | Directories | File List | Class Members | File Members | Related Pages | Examples

http_log.h File Reference

#include "apr_thread_proc.h"

Go to the source code of this file.

Classes

struct  piped_log
 The piped logging structure. More...
#define APLOG_EMERG   0
#define APLOG_ALERT   1
#define APLOG_CRIT   2
#define APLOG_ERR   3
#define APLOG_WARNING   4
#define APLOG_NOTICE   5
#define APLOG_INFO   6
#define APLOG_DEBUG   7
#define APLOG_LEVELMASK   7
#define APLOG_NOERRNO   (APLOG_LEVELMASK + 1)
#define APLOG_TOCLIENT   ((APLOG_LEVELMASK + 1) * 2)
#define APLOG_STARTUP   ((APLOG_LEVELMASK + 1) * 4)
#define DEFAULT_LOGLEVEL   APLOG_WARNING
#define APLOG_MARK   __FILE__,__LINE__
#define ap_piped_log_read_fd(pl)   ((pl)->fds[0])
#define ap_piped_log_write_fd(pl)   ((pl)->fds[1])
typedef piped_log piped_log
 AP_DECLARE (void) ap_open_stderr_log(apr_pool_t *p)
int ap_open_logs (apr_pool_t *pconf, apr_pool_t *plog, apr_pool_t *ptemp, server_rec *s_main)
int int apr_status_t const
server_rec const char 
__attribute__ ((format(printf, 6, 7)))
int AP_DECLARE_DATA ap_default_loglevel
const char * file
int line
int int level
int int apr_status_t status
int int apr_status_t const
server_rec
s
int int apr_status_t const
server_rec const char * 
fmt
int int apr_status_t apr_pool_tp
int int apr_status_t const
request_rec
r
int int apr_status_t const
conn_rec
c
const char * fname
const char * filename
const char pid_t * mypid
const char * program


Define Documentation

#define ap_piped_log_read_fd pl   )     ((pl)->fds[0])
 

A macro to access the read side of the piped log pipe

Parameters:
pl The piped log structure
Returns:
The native file descriptor

Definition at line 314 of file http_log.h.

Referenced by AP_DECLARE().

#define ap_piped_log_write_fd pl   )     ((pl)->fds[1])
 

A macro to access the write side of the piped log pipe

Parameters:
pl The piped log structure
Returns:
The native file descriptor

Definition at line 321 of file http_log.h.

Referenced by AP_DECLARE(), ap_default_log_writer_init(), open_log(), open_rewritelog(), and piped_log_cleanup().

#define APLOG_ALERT   1
 

Definition at line 56 of file http_log.h.

Referenced by AP_DECLARE(), ap_get_local_host(), ap_mpm_run(), child_main(), create_listener_thread(), main(), master_main(), perform_idle_server_maintenance(), prefork_open_logs(), set_group_privs(), set_loglevel(), setup_listeners(), start_threads(), unique_id_global_init(), and worker_open_logs().

#define APLOG_CRIT   2
 

Definition at line 57 of file http_log.h.

Referenced by alloc_listener(), ap_create_scoreboard(), AP_DECLARE(), ap_open_logs(), ap_reopen_scoreboard(), APR_HOOK_STRUCT(), beos_pre_config(), cgid_server(), create_namebased_scoreboard(), dbd_construct(), dbd_setup_init(), init_child(), initialize_secret(), join_start_thread(), join_workers(), listener_thread(), main(), make_secure_socket(), make_sock(), mem_cache_post_config(), mpm_service_start(), nwssl_post_config(), open_scoreboard(), os_fork(), post_config(), prefork_open_logs(), prefork_pre_config(), push2worker(), rewritelock_create(), rfc1413_connect(), rfc1413_query(), set_loglevel(), uldap_connection_find(), unique_id_child_init(), util_ldap_child_init(), util_ldap_post_config(), worker_open_logs(), worker_pre_config(), and worker_thread().

#define APLOG_DEBUG   7
 

Definition at line 62 of file http_log.h.

Referenced by accept_mutex_off(), accept_mutex_on(), add_client(), ajp_handle_cping_cpong(), ajp_ilink_receive(), ajp_marshal_into_msgb(), ajp_parse_type(), ajp_read_header(), ajp_unmarshal_response(), AP_DECLARE(), ap_headers_error_filter(), ap_headers_output_filter(), ap_mpm_run(), ap_proxy_ajp_request(), ap_proxy_determine_connection(), ap_proxy_http_process_response(), ap_proxy_http_request(), apprentice(), APR_OPTIONAL_FN_TYPE(), authn_ldap_check_password(), authz_ldap_check_user_access(), cache_out_filter(), cache_remove_url_filter(), cache_save_filter(), cache_select(), chk_filter_chain(), connect_to_daemon(), core_pre_connection(), create_entity(), default_handler(), deflate_in_filter(), deflate_out_filter(), drain_available_output(), dumpio_create_sconfig(), ef_unified_filter(), filter_trace(), find_best_byrequests(), find_best_bytraffic(), find_code_page(), find_session_route(), fixup_redir(), get_client(), inflate_out_filter(), init_filter_instance(), isapi_handler(), join_workers(), listener_thread(), load_file(), load_module(), log_backtrace(), log_error_core(), magic_init(), main(), make_child(), master_main(), match(), mcheck(), mod_auth_ldap_parse_url(), modssl_proxy_info_log(), open_entity(), parse(), parse_expr(), pass_data_to_filter(), process_socket(), proxy_ajp_canon(), proxy_ajp_handler(), proxy_balancer_canon(), proxy_balancer_post_request(), proxy_balancer_pre_request(), proxy_connect_canon(), proxy_connect_handler(), proxy_ftp_canon(), proxy_ftp_command(), proxy_ftp_handler(), proxy_handler(), proxy_http_canon(), proxy_http_handler(), recall_headers(), remove_url(), revision_suffix(), rsl_strdup(), send_response_header(), ServerSupportFunction(), set_loglevel(), set_shmem_size(), shmcb_expire_division(), shmcb_init_memory(), shmcb_insert_encoded_session(), shmcb_lookup_session_id(), shmcb_remove_session(), shmcb_remove_session_id(), shmcb_retrieve_session(), shmcb_store_session(), ssl_callback_LogTracingState(), ssl_callback_proxy_cert(), ssl_callback_SSLVerify(), ssl_callback_SSLVerify_CRL(), ssl_callback_TmpDH(), ssl_callback_TmpRSA(), ssl_hook_Access(), ssl_init_ctx_callbacks(), ssl_init_ctx_cipher_suite(), ssl_init_ctx_crl(), ssl_init_ctx_protocol(), ssl_init_ctx_verify(), ssl_init_proxy_certs(), ssl_init_PushCAList(), ssl_io_buffer_fill(), ssl_io_data_cb(), ssl_io_data_dump(), ssl_io_filter_buffer(), ssl_io_filter_init(), ssl_pphrase_Handle(), ssl_scache_dbm_expire(), ssl_scache_dbm_store(), ssl_scache_shmcb_init(), ssl_scache_shmcb_retrieve(), ssl_scache_shmcb_status(), ssl_scache_shmcb_store(), ssl_server_import_cert(), ssl_server_import_key(), ssl_session_log(), start_threads(), store_body(), store_headers(), trace_add(), util_ldap_post_config(), util_ldap_set_cache_bytes(), util_ldap_set_cache_entries(), util_ldap_set_cache_file(), util_ldap_set_cache_ttl(), util_ldap_set_connection_timeout(), util_ldap_set_opcache_entries(), util_ldap_set_opcache_ttl(), util_ldap_set_trusted_client_cert(), util_ldap_set_trusted_global_cert(), util_ldap_set_trusted_mode(), util_ldap_set_verify_srv_cert(), WriteClient(), xlate_in_filter(), xlate_insert_filter(), and xlate_out_filter().

#define APLOG_EMERG   0
 

Definition at line 55 of file http_log.h.

Referenced by accept_mutex_off(), accept_mutex_on(), AP_DECLARE(), ap_mpm_run(), beos_accept(), child_main(), listener_thread(), main(), perform_idle_server_maintenance(), set_loglevel(), worker_main(), and worker_thread().

#define APLOG_ERR   3
 

Definition at line 58 of file http_log.h.

Referenced by action_handler(), add_any_filter(), add_any_filter_handle(), add_auth_info(), add_cern_meta_data(), add_name_vhost_config(), ajp_handle_cping_cpong(), ajp_ilink_receive(), ajp_ilink_send(), ajp_log_overflow(), ajp_marshal_into_msgb(), ajp_msg_check_header(), ajp_msg_copy(), ajp_msg_create(), ajp_parse_data(), ajp_parse_header(), ajp_read_header(), ajp_send_header(), ajp_unmarshal_response(), AP_CORE_DECLARE(), AP_CORE_DECLARE_NONSTD(), AP_DECLARE(), AP_DECLARE_NONSTD(), ap_default_log_writer_init(), ap_http_filter(), ap_mpm_child_main(), ap_mpm_run(), ap_proxy_ajp_request(), ap_proxy_determine_connection(), ap_proxy_http_process_response(), ap_proxy_http_request(), ap_read_request(), ap_ssi_parse_string(), apprentice(), APR_OPTIONAL_FN_TYPE(), asis_handler(), authenticate_basic_user(), authenticate_digest_user(), authenticate_no_user(), authn_dbd_password(), authn_dbd_realm(), authnz_ldap_post_config(), beos_accept(), cache_generate_key_default(), cache_out_filter(), cgi_handler(), cgid_child_errfn(), cgid_handler(), cgid_server(), cgid_start(), check_dbm_pw(), check_dir_access(), check_file_owner(), check_nc(), check_nonce(), check_password(), check_user_access(), child_main(), chk_filter_chain(), cleanup_nonchild_process(), cleanup_script(), config_log_transaction(), connection_cleanup(), convert_secure_socket(), create_uncompress_child(), DAV_DECLARE(), dav_get_overwrite(), dav_handle_err(), dav_handler(), dav_merge_dir_config(), dav_method_bind(), dav_method_checkin(), dav_method_checkout(), dav_method_copymove(), dav_method_delete(), dav_method_label(), dav_method_lock(), dav_method_make_workspace(), dav_method_merge(), dav_method_options(), dav_method_propfind(), dav_method_proppatch(), dav_method_report(), dav_method_unlock(), dav_method_update(), dav_method_vsn_control(), dav_prop_log_errors(), dbd_check(), dbd_construct(), DBD_DECLARE_NONSTD(), dbm_check_auth(), default_handler(), deflate_in_filter(), deflate_out_filter(), do_negotiation(), do_rewritelog(), ef_output_filter(), ef_unified_filter(), filter_init(), find_argument(), find_best_worker(), find_code_page(), find_directive(), find_file(), fix_hostname(), fixup_redir(), fsmagic(), gen_client(), get_addresses(), get_basic_auth(), get_dbm_realm_hash(), get_hash(), get_realm_hash(), get_worker(), getstr(), handle_autoindex(), handle_config(), handle_echo(), handle_elif(), handle_else(), handle_endif(), handle_exec(), handle_flastmod(), handle_fsize(), handle_if(), handle_include(), handle_printenv(), handle_set(), hook_fixup(), hook_uri2file(), imap_handler_internal(), imap_url(), ImportOptionalHookTestHook(), include_cmd(), index_directory(), inflate_out_filter(), init_ext_filter_process(), init_filter_instance(), isapi_load(), isapi_pre_config(), lcase_header_name_return_body(), listener_thread(), log_child_errfn(), log_error_and_cleanup(), log_script_err(), log_scripterror(), log_xlate_error(), lookup_map(), lookup_map_program(), magic_process(), magic_rsl_add(), magic_rsl_to_request(), main(), make_child(), make_sock(), make_worker(), master_main(), mcheck(), mconvert(), mime_post_config(), monitor_service_9x_thread(), mpm_service_install(), mpm_service_start(), mpm_service_uninstall(), mpm_signal_service(), mprint(), no_set_limit(), open_entity(), open_listeners(), open_log(), open_rewritelog(), parse(), parse_expr(), pass_brigade(), pass_data_to_filter(), perform_idle_server_maintenance(), process_mkcol_body(), process_socket(), proxy_ajp_canon(), proxy_ajp_handler(), proxy_balancer_canon(), proxy_balancer_post_request(), proxy_balancer_pre_request(), proxy_connect_handler(), proxy_ftp_handler(), proxy_get_host_of_request(), proxy_handler(), proxy_http_canon(), re_check(), read_array(), read_table(), read_type_map(), read_types_multi(), rewrite_child_errfn(), run_cgi_child(), run_rewritemap_programs(), scan_meta_file(), send_parsed_content(), server_maintenance(), service_nt_dispatch_thread(), service_nt_main_fn(), set_expiration_fields(), set_loglevel(), shmcb_init_memory(), shmcb_insert_encoded_session(), shmcb_lookup_session_id(), shmcb_remove_session(), shmcb_remove_session_id(), shmcb_retrieve_session(), shmcb_store_session(), signextend(), spawn_child(), spool_reqbody_cl(), ssl_callback_SSLVerify(), ssl_hook_Access(), ssl_hook_UserCheck(), ssl_init_ctx_cipher_suite(), ssl_init_ctx_crl(), ssl_init_ctx_protocol(), ssl_init_ctx_verify(), ssl_init_server_certs(), ssl_init_server_check(), ssl_init_ssl_connection(), ssl_io_buffer_fill(), ssl_io_filter_buffer(), ssl_io_filter_Upgrade(), ssl_mutex_init(), ssl_mutex_reinit(), ssl_pphrase_Handle(), ssl_pphrase_Handle_CB(), ssl_proxy_enable(), ssl_scache_dbm_expire(), ssl_scache_dbm_init(), ssl_scache_dbm_remove(), ssl_scache_dbm_retrieve(), ssl_scache_dbm_status(), ssl_scache_dbm_store(), ssl_scache_shmcb_init(), ssl_scache_shmcb_store(), ssl_server_import_cert(), ssl_server_import_key(), ssl_tmp_key_init_dh(), ssl_tmp_key_init_rsa(), SSLize_Socket(), STACK_OF(), status_handler(), store_body(), stream_reqbody_cl(), TestOptionalFn(), thread_exception_handler(), uldap_connection_init(), uncompress(), util_ldap_post_config(), util_ldap_set_trusted_client_cert(), util_ldap_set_trusted_global_cert(), worker_main(), worker_thread(), and xlate_out_filter().

#define APLOG_INFO   6
 

Definition at line 61 of file http_log.h.

Referenced by add_client(), AP_DECLARE(), ap_mpm_run(), ap_read_request(), APR_OPTIONAL_FN_TYPE(), authenticate_digest_user(), CACHE_DECLARE(), check_anonymous(), check_nonce(), check_restart(), check_speling(), core_create_conn(), ftp_unauthorized(), isapi_handler(), main(), master_main(), mpm_merge_service_args(), perform_idle_server_maintenance(), proxy_needsdomain(), ServerSupportFunction(), set_loglevel(), ssl_add_version_components(), ssl_callback_LogTracingState(), ssl_callback_SSLVerify_CRL(), ssl_check_public_cert(), ssl_filter_io_shutdown(), ssl_filter_write(), ssl_hook_Access(), ssl_hook_pre_connection(), ssl_hook_ReadReq(), ssl_hook_UserCheck(), ssl_init_ConfigureServer(), ssl_init_Module(), ssl_io_filter_connect(), ssl_io_filter_error(), ssl_io_filter_output(), ssl_io_filter_Upgrade(), ssl_io_input_read(), ssl_pphrase_Handle(), ssl_pphrase_Handle_CB(), ssl_rand_seed(), ssl_scache_shmcb_init(), ssl_scache_shmcb_retrieve(), ssl_tmp_keys_init(), store_body(), unique_id_global_init(), and util_ldap_post_config().

#define APLOG_LEVELMASK   7
 

Definition at line 64 of file http_log.h.

Referenced by log_error_core().

#define APLOG_MARK   __FILE__,__LINE__
 

Definition at line 96 of file http_log.h.

Referenced by accept_mutex_off(), accept_mutex_on(), action_handler(), add_alias_internal(), add_any_filter(), add_any_filter_handle(), add_auth_info(), add_cern_meta_data(), add_client(), add_env_module_vars_passed(), add_member(), add_name_vhost_config(), add_pass(), ajp_handle_cping_cpong(), ajp_ilink_receive(), ajp_ilink_send(), ajp_log_overflow(), ajp_marshal_into_msgb(), ajp_msg_check_header(), ajp_msg_copy(), ajp_msg_create(), ajp_parse_data(), ajp_parse_header(), ajp_parse_type(), ajp_read_header(), ajp_send_header(), ajp_unmarshal_response(), alloc_listener(), analyze_ct(), ap_apply_accept_filter(), AP_CORE_DECLARE(), AP_CORE_DECLARE_NONSTD(), ap_create_scoreboard(), AP_DECLARE(), AP_DECLARE_NONSTD(), ap_default_log_writer_init(), ap_get_local_host(), ap_headers_error_filter(), ap_headers_output_filter(), ap_http_filter(), ap_mpm_child_main(), ap_mpm_run(), ap_open_logs(), ap_proxy_ajp_request(), ap_proxy_determine_connection(), ap_proxy_http_process_response(), ap_proxy_http_request(), ap_proxy_read_headers(), ap_read_request(), ap_reopen_scoreboard(), ap_ssi_parse_string(), apprentice(), APR_HOOK_STRUCT(), APR_OPTIONAL_FN_TYPE(), asis_handler(), authenticate_basic_user(), authenticate_digest_user(), authenticate_no_user(), authn_dbd_password(), authn_dbd_realm(), authn_ldap_check_password(), authnz_ldap_post_config(), authz_ldap_check_user_access(), beos_accept(), beos_pre_config(), CACHE_DECLARE(), cache_generate_key_default(), cache_out_filter(), cache_remove_url_filter(), cache_save_filter(), cache_select(), cache_the_file(), cachefilehandle(), cachefilemmap(), cgi_handler(), cgid_child_errfn(), cgid_handler(), cgid_server(), cgid_start(), check_anonymous(), check_dbm_pw(), check_dir_access(), check_file_owner(), check_nc(), check_nonce(), check_password(), check_restart(), check_speling(), check_user_access(), child_main(), chk_filter_chain(), cleanup_nonchild_process(), cleanup_script(), cleanup_tables(), cmd_rewritecond(), cmd_rewriteoptions(), config_log_transaction(), connect_to_daemon(), connection_cleanup(), convert_secure_socket(), core_create_conn(), core_pre_connection(), create_entity(), create_listener_thread(), create_namebased_scoreboard(), create_uncompress_child(), DAV_DECLARE(), dav_get_overwrite(), dav_handler(), dav_log_err(), dav_merge_dir_config(), dav_method_bind(), dav_method_checkin(), dav_method_checkout(), dav_method_copymove(), dav_method_delete(), dav_method_label(), dav_method_lock(), dav_method_make_workspace(), dav_method_merge(), dav_method_options(), dav_method_propfind(), dav_method_proppatch(), dav_method_report(), dav_method_unlock(), dav_method_update(), dav_method_vsn_control(), dbd_check(), dbd_construct(), DBD_DECLARE_NONSTD(), dbd_setup_init(), dbm_check_auth(), default_handler(), deflate_in_filter(), deflate_out_filter(), do_negotiation(), do_rewritelog(), drain_available_output(), dumpio_input_filter(), dumpio_output_filter(), dumpit(), ef_output_filter(), ef_unified_filter(), file_cache_el_final(), filter_init(), filter_insert(), filter_trace(), find_argument(), find_best_byrequests(), find_best_bytraffic(), find_best_worker(), find_code_page(), find_directive(), find_file(), find_session_route(), fix_hostname(), fixup_redir(), fsmagic(), ftp_unauthorized(), gen_client(), get_addresses(), get_basic_auth(), get_client(), get_dbm_realm_hash(), get_hash(), get_include_var(), get_realm_hash(), get_worker(), getstr(), handle_autoindex(), handle_config(), handle_echo(), handle_elif(), handle_else(), handle_endif(), handle_exec(), handle_flastmod(), handle_fsize(), handle_if(), handle_include(), handle_printenv(), handle_set(), hook_fixup(), hook_uri2file(), imap_handler_internal(), imap_url(), ImportOptionalHookTestHook(), include_cmd(), includes_filter(), index_directory(), inflate_out_filter(), init_child(), init_ext_filter_process(), init_filter_instance(), initialize_secret(), is_variant_better(), is_variant_better_rvsa(), isapi_cmd_cachefile(), isapi_handler(), isapi_load(), isapi_pre_config(), join_start_thread(), join_workers(), lcase_header_name_return_body(), listener_thread(), load_file(), load_module(), log_backtrace(), log_child_errfn(), log_error_and_cleanup(), log_script_err(), log_scripterror(), log_xlate_error(), lookup_map(), lookup_map_program(), magic_init(), magic_process(), magic_rsl_add(), magic_rsl_to_request(), main(), make_child(), make_secure_socket(), make_sock(), make_worker(), master_main(), match(), mcheck(), mconvert(), mem_cache_post_config(), mime_post_config(), mod_auth_ldap_parse_url(), modssl_proxy_info_log(), monitor_service_9x_thread(), mpm_merge_service_args(), mpm_service_install(), mpm_service_start(), mpm_service_uninstall(), mpm_signal_service(), mprint(), no_set_limit(), nwssl_post_config(), open_entity(), open_error_log(), open_listeners(), open_log(), open_rewritelog(), open_scoreboard(), os_fork(), parse(), parse_expr(), parse_negotiate_header(), pass_brigade(), pass_data_to_filter(), perform_idle_server_maintenance(), pod_signal_internal(), post_config(), prefork_open_logs(), prefork_pre_config(), process_mkcol_body(), process_socket(), proxy_ajp_canon(), proxy_ajp_handler(), proxy_balancer_canon(), proxy_balancer_post_request(), proxy_balancer_pre_request(), proxy_connect_canon(), proxy_connect_handler(), proxy_ftp_canon(), proxy_ftp_command(), proxy_ftp_handler(), proxy_get_host_of_request(), proxy_handler(), proxy_http_canon(), proxy_http_handler(), proxy_match_ipaddr(), proxy_needsdomain(), proxy_send_dir_filter(), proxy_trans(), push2worker(), re_check(), read_array(), read_table(), read_type_map(), read_types_multi(), recall_headers(), remove_unused_name_vhosts(), remove_url(), revision_suffix(), rewrite_child_errfn(), rewritelock_create(), rfc1413_connect(), rfc1413_query(), rsl_strdup(), run_cgi_child(), run_rewritemap_programs(), scan_meta_file(), send_parsed_content(), send_response_header(), server_main_loop(), server_maintenance(), ServerSupportFunction(), service_nt_dispatch_thread(), service_nt_main_fn(), set_algorithm(), set_document_root(), set_error_document(), set_expiration_fields(), set_group_privs(), set_max_clients(), set_max_requests_per_thread(), set_min_free_servers(), set_min_spare_threads(), set_nc_check(), set_override(), set_proxy_dirconn(), set_qop(), set_recursion_limit(), set_server_limit(), set_shmem_size(), set_signals(), set_thread_limit(), set_threads_limit(), set_threads_per_child(), set_threads_to_start(), shmcb_expire_division(), shmcb_init_memory(), shmcb_insert_encoded_session(), shmcb_lookup_session_id(), shmcb_remove_session(), shmcb_remove_session_id(), shmcb_retrieve_session(), shmcb_store_session(), signextend(), spawn_child(), spool_reqbody_cl(), ssl_add_version_components(), ssl_callback_LogTracingState(), ssl_callback_proxy_cert(), ssl_callback_SSLVerify(), ssl_callback_SSLVerify_CRL(), ssl_callback_TmpDH(), ssl_callback_TmpRSA(), ssl_check_public_cert(), ssl_filter_io_shutdown(), ssl_filter_write(), ssl_hook_Access(), ssl_hook_pre_connection(), ssl_hook_ReadReq(), ssl_hook_UserCheck(), ssl_init_CheckServers(), ssl_init_ConfigureServer(), ssl_init_ctx_cipher_suite(), ssl_init_ctx_crl(), ssl_init_ctx_protocol(), ssl_init_ctx_verify(), ssl_init_Module(), ssl_init_proxy_certs(), ssl_init_PushCAList(), ssl_init_server_certs(), ssl_init_server_check(), ssl_init_ssl_connection(), ssl_io_buffer_fill(), ssl_io_data_cb(), ssl_io_data_dump(), ssl_io_filter_buffer(), ssl_io_filter_connect(), ssl_io_filter_error(), ssl_io_filter_output(), ssl_io_filter_Upgrade(), ssl_io_input_read(), ssl_mutex_init(), ssl_mutex_off(), ssl_mutex_on(), ssl_mutex_reinit(), ssl_pphrase_Handle(), ssl_pphrase_Handle_CB(), ssl_proxy_enable(), ssl_rand_seed(), ssl_scache_dbm_expire(), ssl_scache_dbm_init(), ssl_scache_dbm_remove(), ssl_scache_dbm_retrieve(), ssl_scache_dbm_status(), ssl_scache_dbm_store(), ssl_scache_init(), ssl_scache_shmcb_init(), ssl_scache_shmcb_retrieve(), ssl_scache_shmcb_status(), ssl_scache_shmcb_store(), ssl_server_import_cert(), ssl_server_import_key(), ssl_session_log(), ssl_tmp_key_init_dh(), ssl_tmp_key_init_rsa(), ssl_tmp_keys_init(), SSLize_Socket(), STACK_OF(), start_threads(), status_handler(), store_body(), store_headers(), stream_reqbody_cl(), suexec_post_config(), TestOptionalFn(), thread_exception_handler(), trace_add(), uldap_connection_find(), uldap_connection_init(), uncompress(), unique_id_child_init(), unique_id_global_init(), usage(), util_ldap_child_init(), util_ldap_post_config(), util_ldap_set_cache_bytes(), util_ldap_set_cache_entries(), util_ldap_set_cache_file(), util_ldap_set_cache_ttl(), util_ldap_set_connection_timeout(), util_ldap_set_opcache_entries(), util_ldap_set_opcache_ttl(), util_ldap_set_trusted_client_cert(), util_ldap_set_trusted_global_cert(), util_ldap_set_trusted_mode(), util_ldap_set_verify_srv_cert(), worker_main(), worker_open_logs(), worker_pre_config(), worker_thread(), WriteClient(), xlate_in_filter(), xlate_insert_filter(), and xlate_out_filter().

#define APLOG_NOERRNO   (APLOG_LEVELMASK + 1)
 

Definition at line 71 of file http_log.h.

#define APLOG_NOTICE   5
 

Definition at line 60 of file http_log.h.

Referenced by ap_mpm_run(), initialize_secret(), log_error_core(), main(), master_main(), mem_cache_post_config(), set_error_document(), set_loglevel(), suexec_post_config(), util_ldap_set_connection_timeout(), and worker_main().

#define APLOG_STARTUP   ((APLOG_LEVELMASK + 1) * 4)
 

Definition at line 88 of file http_log.h.

Referenced by AP_DECLARE(), ap_get_local_host(), cleanup_tables(), is_variant_better(), is_variant_better_rvsa(), log_error_core(), main(), make_sock(), monitor_service_9x_thread(), mpm_service_install(), mpm_service_start(), mpm_service_uninstall(), mpm_signal_service(), open_error_log(), open_listeners(), parse_negotiate_header(), prefork_open_logs(), proxy_match_ipaddr(), service_nt_dispatch_thread(), service_nt_main_fn(), set_document_root(), set_max_clients(), set_max_requests_per_thread(), set_min_free_servers(), set_min_free_threads(), set_min_spare_threads(), set_proxy_dirconn(), set_server_limit(), set_thread_limit(), set_threads_limit(), set_threads_per_child(), set_threads_to_start(), ssl_init_proxy_certs(), usage(), and worker_open_logs().

#define APLOG_TOCLIENT   ((APLOG_LEVELMASK + 1) * 2)
 

Definition at line 85 of file http_log.h.

Referenced by AP_DECLARE(), and run_cgi_child().

#define APLOG_WARNING   4
 

Definition at line 59 of file http_log.h.

Referenced by add_alias_internal(), add_env_module_vars_passed(), add_member(), add_pass(), analyze_ct(), ap_apply_accept_filter(), AP_CORE_DECLARE(), AP_DECLARE(), ap_get_local_host(), ap_http_filter(), ap_mpm_run(), ap_proxy_http_process_response(), ap_proxy_http_request(), ap_proxy_read_headers(), authn_ldap_check_password(), authz_ldap_check_user_access(), cache_the_file(), cachefilehandle(), cachefilemmap(), cmd_rewritecond(), cmd_rewriteoptions(), create_entity(), dav_method_bind(), dav_method_copymove(), dav_method_delete(), dav_method_mkcol(), dav_method_put(), dav_method_vsn_control(), DBD_DECLARE_NONSTD(), file_cache_el_final(), filter_insert(), get_include_var(), handle_config(), handle_echo(), handle_elif(), handle_else(), handle_endif(), handle_exec(), handle_flastmod(), handle_fsize(), handle_if(), handle_include(), handle_printenv(), handle_set(), includes_filter(), isapi_cmd_cachefile(), isapi_handler(), load_module(), main(), make_child(), make_sock(), mem_cache_post_config(), nwssl_post_config(), pod_signal_internal(), proxy_handler(), proxy_send_dir_filter(), proxy_trans(), remove_unused_name_vhosts(), run_rewritemap_programs(), send_parsed_content(), server_main_loop(), ServerSupportFunction(), set_algorithm(), set_loglevel(), set_nc_check(), set_override(), set_qop(), set_recursion_limit(), set_signals(), ssl_callback_proxy_cert(), ssl_callback_SSLVerify_CRL(), ssl_check_public_cert(), ssl_hook_Access(), ssl_init_CheckServers(), ssl_init_ctx_verify(), ssl_init_proxy_certs(), ssl_mutex_off(), ssl_mutex_on(), ssl_mutex_reinit(), ssl_rand_seed(), ssl_scache_init(), and store_headers().

#define DEFAULT_LOGLEVEL   APLOG_WARNING
 

Definition at line 91 of file http_log.h.

Referenced by init_server_config().


Typedef Documentation

typedef struct piped_log piped_log
 

See also:
piped_log

Definition at line 272 of file http_log.h.


Function Documentation

int int apr_status_t const conn_rec const char __attribute__ (format(printf, 6, 7))   ) 
 

int ap_open_logs apr_pool_t pconf,
apr_pool_t plog,
apr_pool_t ptemp,
server_rec s_main
 

Open the error log and replace stderr with it.

Parameters:
pconf Not used
plog The pool to allocate the logs from
ptemp Pool used for temporary allocations
s_main The main server
Note:
ap_open_logs isn't expected to be used by modules, it is an internal core function

Definition at line 386 of file log.c.

References APLOG_CRIT, APLOG_MARK, apr_pool_create, APR_SUCCESS, clear_handle_list(), DONE, server_rec::error_fname, server_rec::error_log, server_rec::next, NULL, OK, and open_error_log().

Referenced by register_hooks().

00388 {
00389     apr_pool_t *stderr_p;
00390     server_rec *virt, *q;
00391     int replace_stderr;
00392 
00393 
00394     /* Register to throw away the read_handles list when we
00395      * cleanup plog.  Upon fork() for the apache children,
00396      * this read_handles list is closed so only the parent
00397      * can relaunch a lost log child.  These read handles 
00398      * are always closed on exec.
00399      * We won't care what happens to our stderr log child 
00400      * between log phases, so we don't mind losing stderr's 
00401      * read_handle a little bit early.
00402      */
00403     apr_pool_cleanup_register(p, NULL, clear_handle_list,
00404                               apr_pool_cleanup_null);
00405 
00406     /* HERE we need a stdout log that outlives plog.
00407      * We *presume* the parent of plog is a process 
00408      * or global pool which spans server restarts.
00409      * Create our stderr_pool as a child of the plog's
00410      * parent pool.
00411      */
00412     apr_pool_create(&stderr_p, apr_pool_parent_get(p));
00413     apr_pool_tag(stderr_p, "stderr_pool");
00414     
00415     if (open_error_log(s_main, 1, stderr_p) != OK) {
00416         return DONE;
00417     }
00418 
00419     replace_stderr = 1;
00420     if (s_main->error_log) {
00421         apr_status_t rv;
00422         
00423         /* Replace existing stderr with new log. */
00424         apr_file_flush(s_main->error_log);
00425         rv = apr_file_dup2(stderr_log, s_main->error_log, stderr_p);
00426         if (rv != APR_SUCCESS) {
00427             ap_log_error(APLOG_MARK, APLOG_CRIT, rv, s_main,
00428                          "unable to replace stderr with error_log");
00429         }
00430         else {
00431             /* We are done with stderr_pool, close it, killing
00432              * the previous generation's stderr logger
00433              */
00434             if (stderr_pool)
00435                 apr_pool_destroy(stderr_pool);
00436             stderr_pool = stderr_p;
00437             replace_stderr = 0;
00438             /*
00439              * Now that we have dup'ed s_main->error_log to stderr_log
00440              * close it and set s_main->error_log to stderr_log. This avoids
00441              * this fd being inherited by the next piped logger who would
00442              * keep open the writing end of the pipe that this one uses
00443              * as stdin. This in turn would prevent the piped logger from
00444              * exiting.
00445              */
00446              apr_file_close(s_main->error_log);
00447              s_main->error_log = stderr_log;
00448         }
00449     }
00450     /* note that stderr may still need to be replaced with something
00451      * because it points to the old error log, or back to the tty
00452      * of the submitter.
00453      * XXX: This is BS - /dev/null is non-portable
00454      */
00455     if (replace_stderr && freopen("/dev/null", "w", stderr) == NULL) {
00456         ap_log_error(APLOG_MARK, APLOG_CRIT, errno, s_main,
00457                      "unable to replace stderr with /dev/null");
00458     }
00459 
00460     for (virt = s_main->next; virt; virt = virt->next) {
00461         if (virt->error_fname) {
00462             for (q=s_main; q != virt; q = q->next) {
00463                 if (q->error_fname != NULL
00464                     && strcmp(q->error_fname, virt->error_fname) == 0) {
00465                     break;
00466                 }
00467             }
00468 
00469             if (q == virt) {
00470                 if (open_error_log(virt, 0, p) != OK) {
00471                     return DONE;
00472                 }
00473             }
00474             else {
00475                 virt->error_log = q->error_log;
00476             }
00477         }
00478         else {
00479             virt->error_log = s_main->error_log;
00480         }
00481     }
00482     return OK;
00483 }


Variable Documentation

int AP_DECLARE_DATA ap_default_loglevel
 

Referenced by log_error_core(), and main().

int int apr_status_t const conn_rec* c