log.c File Reference

#include <config.h>
#include <isc/util.h>
#include <dns/log.h>

Go to the source code of this file.

Functions

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_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>.
LIBDNS_EXTERNAL_DATA isc_log_tdns_lctx = NULL


Detailed Description

Definition in file log.c.


Function Documentation

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_logcategory_t dns_categories[]

Initial value:

 {
        { "notify",     0 },
        { "database",   0 },
        { "security",   0 },
        { "_placeholder", 0 },
        { "dnssec",     0 },
        { "resolver",   0 },
        { "xfer-in",    0 },
        { "xfer-out",   0 },
        { "dispatch",   0 },
        { "lame-servers", 0 },
        { "delegation-only", 0 },
        { "edns-disabled", 0 },
        { "rpz",        0 },
        { "rate-limit", 0 },
        { "cname",      0 },
        { NULL,         0 }
}
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().

LIBDNS_EXTERNAL_DATA isc_log_t* dns_lctx = NULL

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().


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