log.h File Reference

#include <isc/lang.h>
#include <isc/log.h>

Go to the source code of this file.

Defines

#define DNS_LOG_H   1
#define DNS_LOGCATEGORY_NOTIFY   (&dns_categories[0])
#define DNS_LOGCATEGORY_DATABASE   (&dns_categories[1])
#define DNS_LOGCATEGORY_SECURITY   (&dns_categories[2])
#define DNS_LOGCATEGORY_DNSSEC   (&dns_categories[4])
#define DNS_LOGCATEGORY_RESOLVER   (&dns_categories[5])
#define DNS_LOGCATEGORY_XFER_IN   (&dns_categories[6])
#define DNS_LOGCATEGORY_XFER_OUT   (&dns_categories[7])
#define DNS_LOGCATEGORY_DISPATCH   (&dns_categories[8])
#define DNS_LOGCATEGORY_LAME_SERVERS   (&dns_categories[9])
#define DNS_LOGCATEGORY_DELEGATION_ONLY   (&dns_categories[10])
#define DNS_LOGCATEGORY_EDNS_DISABLED   (&dns_categories[11])
#define DNS_LOGCATEGORY_RPZ   (&dns_categories[12])
#define DNS_LOGCATEGORY_RRL   (&dns_categories[13])
#define DNS_LOGCATEGORY_CNAME   (&dns_categories[14])
#define DNS_LOGCATEGORY_GENERAL   ISC_LOGCATEGORY_GENERAL
#define DNS_LOGMODULE_DB   (&dns_modules[0])
#define DNS_LOGMODULE_RBTDB   (&dns_modules[1])
#define DNS_LOGMODULE_RBTDB64   (&dns_modules[2])
#define DNS_LOGMODULE_RBT   (&dns_modules[3])
#define DNS_LOGMODULE_RDATA   (&dns_modules[4])
#define DNS_LOGMODULE_MASTER   (&dns_modules[5])
#define DNS_LOGMODULE_MESSAGE   (&dns_modules[6])
#define DNS_LOGMODULE_CACHE   (&dns_modules[7])
#define DNS_LOGMODULE_CONFIG   (&dns_modules[8])
#define DNS_LOGMODULE_RESOLVER   (&dns_modules[9])
#define DNS_LOGMODULE_ZONE   (&dns_modules[10])
#define DNS_LOGMODULE_JOURNAL   (&dns_modules[11])
#define DNS_LOGMODULE_ADB   (&dns_modules[12])
#define DNS_LOGMODULE_XFER_IN   (&dns_modules[13])
#define DNS_LOGMODULE_XFER_OUT   (&dns_modules[14])
#define DNS_LOGMODULE_ACL   (&dns_modules[15])
#define DNS_LOGMODULE_VALIDATOR   (&dns_modules[16])
#define DNS_LOGMODULE_DISPATCH   (&dns_modules[17])
#define DNS_LOGMODULE_REQUEST   (&dns_modules[18])
#define DNS_LOGMODULE_MASTERDUMP   (&dns_modules[19])
#define DNS_LOGMODULE_TSIG   (&dns_modules[20])
#define DNS_LOGMODULE_TKEY   (&dns_modules[21])
#define DNS_LOGMODULE_SDB   (&dns_modules[22])
#define DNS_LOGMODULE_DIFF   (&dns_modules[23])
#define DNS_LOGMODULE_HINTS   (&dns_modules[24])
#define DNS_LOGMODULE_ACACHE   (&dns_modules[25])
#define DNS_LOGMODULE_DLZ   (&dns_modules[26])
#define DNS_LOGMODULE_DNSSEC   (&dns_modules[27])
#define DNS_LOGMODULE_CRYPTO   (&dns_modules[28])
#define DNS_LOGMODULE_PACKETS   (&dns_modules[29])
#define DNS_LOGMODULE_NTA   (&dns_modules[30])

Functions

ISC_LANG_BEGINDECLS void dns_log_init (isc_log_t *lctx)
void dns_log_setcontext (isc_log_t *lctx)
 Make the libdns categories and modules available for use with the ISC logging library.

Variables

LIBDNS_EXTERNAL_DATA isc_log_tdns_lctx
LIBDNS_EXTERNAL_DATA
isc_logcategory_t 
dns_categories []
 When adding a new category, be sure to add the appropriate #define to <dns/log.h>.
LIBDNS_EXTERNAL_DATA
isc_logmodule_t 
dns_modules []
 When adding a new module, be sure to add the appropriate #define to <dns/log.h>.


Detailed Description

Author:
Principal Authors: DCL

Definition in file log.h.


Define Documentation

#define DNS_LOG_H   1

Definition at line 24 of file log.h.

#define DNS_LOGCATEGORY_NOTIFY   (&dns_categories[0])

Definition at line 33 of file log.h.

Referenced by notify_log().

#define DNS_LOGCATEGORY_DATABASE   (&dns_categories[1])

Definition at line 34 of file log.h.

Referenced by acache_cleaning_timer_action(), acache_incremental_cleaning_action(), acache_overmem_cleaning_action(), adjust_quantum(), begin_cleaning(), cleaning_timer_action(), closeversion(), decrement_reference(), delete_node(), detachnode(), dns_acache_setcleaninginterval(), dns_cache_detach(), dns_cache_setcleaninginterval(), dns_db_create(), dns_dlz_ssumatch(), dns_dlz_writeablezone(), dns_dlzcreate(), dns_dlzdestroy(), dns_dlzregister(), dns_dlzunregister(), DP(), end_cleaning(), expirenode(), flush_deletions(), free_rbtdb(), incremental_cleaning_action(), loadnode(), maybe_free_rbtdb(), ns_lwdclient_log(), overmem_cleaning_action(), previous_closest_nsec(), sdlz_log(), and water().

#define DNS_LOGCATEGORY_SECURITY   (&dns_categories[2])

Definition at line 35 of file log.h.

Referenced by client_newconn(), client_request(), configure_view_dnsseckeys(), ns_client_checkacl(), ns_client_error(), ns_client_next(), ns_xfr_start(), ns_zone_configure(), query_find(), query_getcachedb(), query_validatezonedb(), ssu_e_log(), and warn_rfc1918().

#define DNS_LOGCATEGORY_DNSSEC   (&dns_categories[4])

Definition at line 37 of file log.h.

Referenced by dns_dnssec_sign(), dns_dnssec_signmessage(), dns_dnssec_verify3(), dns_dnssec_verifymessage(), dns_ntatable_covered(), dns_tsig_sign(), dns_tsig_verify(), dns_tsigkey_createfromkey(), query_find(), query_findclosestnsec3(), tsig_log(), tsig_verify_tcp(), and validator_log().

#define DNS_LOGCATEGORY_RESOLVER   (&dns_categories[5])

Definition at line 38 of file log.h.

Referenced by cache_name(), fctx_getaddresses(), fctx_log(), fctx_sendevents(), fctx_try(), is_answeraddress_allowed(), is_answertarget_allowed(), log_fetch(), log_formerr(), log_ns_ttl(), log_nsid(), resquery_response(), resquery_send(), spillattimer_countdown(), and trim_ns_ttl().

#define DNS_LOGCATEGORY_XFER_IN   (&dns_categories[6])

Definition at line 39 of file log.h.

Referenced by queue_xfrin(), xfrin_logv(), and xfrin_recv_done().

#define DNS_LOGCATEGORY_XFER_OUT   (&dns_categories[7])

Definition at line 40 of file log.h.

Referenced by ns_xfr_start(), and xfrout_logv().

#define DNS_LOGCATEGORY_DISPATCH   (&dns_categories[8])

Definition at line 41 of file log.h.

Referenced by dispatch_log(), mgr_log(), and request_log().

#define DNS_LOGCATEGORY_LAME_SERVERS   (&dns_categories[9])

Definition at line 42 of file log.h.

Referenced by add_bad(), and log_lame().

#define DNS_LOGCATEGORY_DELEGATION_ONLY   (&dns_categories[10])

Definition at line 43 of file log.h.

Referenced by resquery_response().

#define DNS_LOGCATEGORY_EDNS_DISABLED   (&dns_categories[11])

Definition at line 44 of file log.h.

Referenced by log_edns().

#define DNS_LOGCATEGORY_RPZ   (&dns_categories[12])

Definition at line 45 of file log.h.

Referenced by add_cidr(), badname(), del_name(), dns_rpz_find_ip(), dns_rpz_find_name(), dns_rpz_ready(), findnodeintree(), fix_triggers(), rpz_getdb(), and rpz_log_rewrite().

#define DNS_LOGCATEGORY_RRL   (&dns_categories[13])

Definition at line 46 of file log.h.

Referenced by debit_log(), debit_rrl_entry(), dns_rrl(), expand_entries(), expand_rrl_hash(), hash_divisor(), log_end(), make_log_buf(), query_find(), and set_age().

#define DNS_LOGCATEGORY_CNAME   (&dns_categories[14])

Definition at line 47 of file log.h.

Referenced by findname().

#define DNS_LOGCATEGORY_GENERAL   ISC_LOGCATEGORY_GENERAL

Definition at line 50 of file log.h.

Referenced by dns_dnssec_findmatchingkeys(), dns_dnssec_findzonekeys2(), dns_dnssec_keylistfromrdataset(), dns_root_checkhints(), dns_rootns_create(), dns_zone_log(), dst__privstruct_writefile(), dst_context_create(), freezezones(), gss_log(), isclog_error_callback(), isclog_warn_callback(), report(), req_log(), save_nsec3param(), tkey_log(), zone_debuglog(), zone_postload(), and zone_replacedb().

#define DNS_LOGMODULE_DB   (&dns_modules[0])

Definition at line 52 of file log.h.

Referenced by dns_db_create().

#define DNS_LOGMODULE_RBTDB   (&dns_modules[1])

Definition at line 53 of file log.h.

Referenced by add_cidr(), badname(), del_name(), dns_rpz_find_ip(), dns_rpz_find_name(), dns_rpz_ready(), findnodeintree(), and fix_triggers().

#define DNS_LOGMODULE_RBTDB64   (&dns_modules[2])

Definition at line 54 of file log.h.

#define DNS_LOGMODULE_RBT   (&dns_modules[3])

Definition at line 55 of file log.h.

#define DNS_LOGMODULE_RDATA   (&dns_modules[4])

Definition at line 56 of file log.h.

#define DNS_LOGMODULE_MASTER   (&dns_modules[5])

Definition at line 57 of file log.h.

Referenced by isclog_error_callback(), and isclog_warn_callback().

#define DNS_LOGMODULE_MESSAGE   (&dns_modules[6])

Definition at line 58 of file log.h.

Referenced by dns_message_parse().

#define DNS_LOGMODULE_CACHE   (&dns_modules[7])

Definition at line 59 of file log.h.

Referenced by adjust_quantum(), begin_cleaning(), cleaning_timer_action(), decrement_reference(), delete_node(), detachnode(), dns_cache_detach(), dns_cache_setcleaninginterval(), end_cleaning(), expirenode(), flush_deletions(), free_rbtdb(), incremental_cleaning_action(), loadnode(), maybe_free_rbtdb(), overmem_cleaning_action(), and previous_closest_nsec().

#define DNS_LOGMODULE_CONFIG   (&dns_modules[8])

Definition at line 60 of file log.h.

#define DNS_LOGMODULE_RESOLVER   (&dns_modules[9])

Definition at line 61 of file log.h.

Referenced by add_bad(), cache_name(), fctx_getaddresses(), fctx_log(), fctx_sendevents(), fctx_try(), findname(), is_answeraddress_allowed(), is_answertarget_allowed(), log_edns(), log_fetch(), log_formerr(), log_lame(), log_ns_ttl(), log_nsid(), resquery_response(), spillattimer_countdown(), and trim_ns_ttl().

#define DNS_LOGMODULE_ZONE   (&dns_modules[10])

Definition at line 62 of file log.h.

Referenced by closeversion(), dns_zone_log(), dns_zone_logc(), freezezones(), notify_log(), save_nsec3param(), ssu_e_log(), zone_debuglog(), zone_postload(), and zone_replacedb().

#define DNS_LOGMODULE_JOURNAL   (&dns_modules[11])

Definition at line 63 of file log.h.

#define DNS_LOGMODULE_ADB   (&dns_modules[12])

Definition at line 64 of file log.h.

Referenced by DP(), and ns_lwdclient_log().

#define DNS_LOGMODULE_XFER_IN   (&dns_modules[13])

Definition at line 65 of file log.h.

Referenced by xfrin_logv(), and xfrin_recv_done().

#define DNS_LOGMODULE_XFER_OUT   (&dns_modules[14])

Definition at line 66 of file log.h.

#define DNS_LOGMODULE_ACL   (&dns_modules[15])

Definition at line 67 of file log.h.

#define DNS_LOGMODULE_VALIDATOR   (&dns_modules[16])

Definition at line 68 of file log.h.

Referenced by validator_log().

#define DNS_LOGMODULE_DISPATCH   (&dns_modules[17])

Definition at line 69 of file log.h.

Referenced by dispatch_log(), mgr_log(), and request_log().

#define DNS_LOGMODULE_REQUEST   (&dns_modules[18])

Definition at line 70 of file log.h.

Referenced by debit_log(), debit_rrl_entry(), dns_rrl(), expand_entries(), expand_rrl_hash(), hash_divisor(), log_end(), make_log_buf(), req_log(), set_age(), and tkey_log().

#define DNS_LOGMODULE_MASTERDUMP   (&dns_modules[19])

Definition at line 71 of file log.h.

Referenced by closeandrename(), dns_master_dumpnode(), dumptostreaminc(), flushandsync(), opentmp(), and writeheader().

#define DNS_LOGMODULE_TSIG   (&dns_modules[20])

Definition at line 72 of file log.h.

Referenced by dns_tsigkey_createfromkey(), and tsig_log().

#define DNS_LOGMODULE_TKEY   (&dns_modules[21])

Definition at line 73 of file log.h.

Referenced by gss_log().

#define DNS_LOGMODULE_SDB   (&dns_modules[22])

Definition at line 74 of file log.h.

#define DNS_LOGMODULE_DIFF   (&dns_modules[23])

Definition at line 75 of file log.h.

#define DNS_LOGMODULE_HINTS   (&dns_modules[24])

Definition at line 76 of file log.h.

Referenced by dns_root_checkhints(), dns_rootns_create(), and report().

#define DNS_LOGMODULE_ACACHE   (&dns_modules[25])

Definition at line 77 of file log.h.

Referenced by acache_cleaning_timer_action(), acache_incremental_cleaning_action(), acache_overmem_cleaning_action(), begin_cleaning(), dns_acache_setcleaninginterval(), end_cleaning(), and water().

#define DNS_LOGMODULE_DLZ   (&dns_modules[26])

Definition at line 78 of file log.h.

Referenced by dns_dlz_ssumatch(), dns_dlz_writeablezone(), dns_dlzcreate(), dns_dlzdestroy(), dns_dlzregister(), dns_dlzunregister(), and sdlz_log().

#define DNS_LOGMODULE_DNSSEC   (&dns_modules[27])

Definition at line 79 of file log.h.

Referenced by dns_dnssec_findmatchingkeys(), dns_dnssec_findzonekeys2(), dns_dnssec_keylistfromrdataset(), dns_dnssec_verify3(), and dst__privstruct_writefile().

#define DNS_LOGMODULE_CRYPTO   (&dns_modules[28])

Definition at line 80 of file log.h.

#define DNS_LOGMODULE_PACKETS   (&dns_modules[29])

Definition at line 81 of file log.h.

Referenced by resquery_response(), and resquery_send().

#define DNS_LOGMODULE_NTA   (&dns_modules[30])

Definition at line 82 of file log.h.

Referenced by dns_ntatable_covered().


Function Documentation

ISC_LANG_BEGINDECLS void dns_log_init ( isc_log_t lctx  ) 

Definition at line 95 of file log.c.

References dns_categories, dns_modules, isc_log_registercategories(), isc_log_registermodules(), and REQUIRE.

Referenced by dns_client_create(), dns_test_begin(), ns_log_init(), setup_libs(), setup_logging(), and setup_system().

void dns_log_setcontext ( isc_log_t lctx  ) 

Make the libdns categories and modules available for use with the ISC logging library.

Requires:

Ensures:

Definition at line 103 of file log.c.

References dns_lctx.

Referenced by cleanup_logging(), dns_client_create(), dns_test_begin(), ns_log_init(), ns_log_shutdown(), setup_libs(), setup_logging(), and setup_system().


Variable Documentation

LIBDNS_EXTERNAL_DATA isc_log_t* dns_lctx

Definition at line 92 of file log.c.

Referenced by acache_cleaning_timer_action(), acache_incremental_cleaning_action(), acache_overmem_cleaning_action(), add_bad(), add_cidr(), adjust_quantum(), badname(), begin_cleaning(), cache_name(), cleaning_timer_action(), closeandrename(), closeversion(), debit_log(), debit_rrl_entry(), decrement_reference(), del_name(), delete_node(), detachnode(), dispatch_createudp(), dispatch_log(), dns_acache_setcleaninginterval(), dns_adb_createfind2(), dns_cache_detach(), dns_cache_setcleaninginterval(), dns_db_create(), dns_dlz_ssumatch(), dns_dlz_writeablezone(), dns_dlzcreate(), dns_dlzdestroy(), dns_dlzregister(), dns_dlzunregister(), dns_dnssec_findmatchingkeys(), dns_dnssec_findzonekeys2(), dns_dnssec_keylistfromrdataset(), dns_dnssec_verify3(), dns_log_setcontext(), dns_master_dumpnode(), dns_message_parse(), dns_ntatable_covered(), dns_root_checkhints(), dns_rootns_create(), dns_rpz_find_ip(), dns_rpz_find_name(), dns_rpz_ready(), dns_rrl(), dns_tsigkey_createfromkey(), dns_zone_log(), dns_zone_logc(), DP(), dst__privstruct_writefile(), dumptostreaminc(), end_cleaning(), expand_entries(), expand_rrl_hash(), expirenode(), fctx_getaddresses(), fctx_log(), fctx_sendevents(), fctx_try(), findname(), findnodeintree(), fix_triggers(), flush_deletions(), flushandsync(), free_rbtdb(), freezezones(), gss_log(), hash_divisor(), incremental_cleaning_action(), is_answeraddress_allowed(), is_answertarget_allowed(), isclog_error_callback(), isclog_warn_callback(), loadnode(), log_edns(), log_end(), log_fetch(), log_formerr(), log_lame(), log_ns_ttl(), log_nsid(), logfmtpacket(), make_log_buf(), maybe_free_rbtdb(), mgr_log(), notify_log(), ns_lwdclient_log(), opentmp(), overmem_cleaning_action(), possibly_mark(), previous_closest_nsec(), report(), req_log(), request_log(), resquery_response(), save_nsec3param(), sdlz_log(), set_age(), spillattimer_countdown(), ssu_e_log(), tkey_log(), trim_ns_ttl(), tsig_log(), udp_recv(), update_log(), validator_log(), validator_logv(), view_find(), water(), writeheader(), xfrin_log(), xfrin_log1(), xfrin_logv(), zone_debuglog(), zone_postload(), and zone_replacedb().

LIBDNS_EXTERNAL_DATA isc_logcategory_t dns_categories[]

When adding a new category, be sure to add the appropriate #define to <dns/log.h>.

Definition at line 34 of file log.c.

Referenced by dns_log_init().

LIBDNS_EXTERNAL_DATA isc_logmodule_t dns_modules[]

When adding a new module, be sure to add the appropriate #define to <dns/log.h>.

Definition at line 57 of file log.c.

Referenced by dns_log_init().


Generated on Tue Apr 28 17:41:15 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha