log.h revision 0c27b3fe77ac1d5094ba3521e8142d9e7973133f
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * Copyright (C) 1999-2001, 2003-2007, 2009, 2011-2016 Internet Systems Consortium, Inc. ("ISC")
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * This Source Code Form is subject to the terms of the Mozilla Public
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * License, v. 2.0. If a copy of the MPL was not distributed with this
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * file, You can obtain one at http://mozilla.org/MPL/2.0/.
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein * \author Principal Authors: DCL */
f621719829356f27e831507b75e88e8a655e48d8Danny MayerLIBDNS_EXTERNAL_DATA extern isc_logcategory_t dns_categories[];
f621719829356f27e831507b75e88e8a655e48d8Danny MayerLIBDNS_EXTERNAL_DATA extern isc_logmodule_t dns_modules[];
5fe5a0c02634eaadfcbc3528bf2c184557110a3bAndreas Gustafsson#define DNS_LOGCATEGORY_NOTIFY (&dns_categories[0])
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence#define DNS_LOGCATEGORY_DATABASE (&dns_categories[1])
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence#define DNS_LOGCATEGORY_SECURITY (&dns_categories[2])
024face21cdfbfc7a862a3be061e6780533ef755Andreas Gustafsson/* DNS_LOGCATEGORY_CONFIG superseded by CFG_LOGCATEGORY_CONFIG */
230bc05e7e4a6ba7fa4ee396048ab669552dcbe2Andreas Gustafsson#define DNS_LOGCATEGORY_DNSSEC (&dns_categories[4])
2c2cda0045ec97d0db445ed777411930f27c0dd0Bob Halley#define DNS_LOGCATEGORY_RESOLVER (&dns_categories[5])
81ae5e1ae678320e46342d4bbb71bfb81227a248Andreas Gustafsson#define DNS_LOGCATEGORY_XFER_IN (&dns_categories[6])
81ae5e1ae678320e46342d4bbb71bfb81227a248Andreas Gustafsson#define DNS_LOGCATEGORY_XFER_OUT (&dns_categories[7])
20c266cbc999c724e03e6edd437fb4181b92f095Michael Graff#define DNS_LOGCATEGORY_DISPATCH (&dns_categories[8])
ff7f1dc0393cfc8a033be7e94aa56cd57c97d174Andreas Gustafsson#define DNS_LOGCATEGORY_LAME_SERVERS (&dns_categories[9])
4607e7a9b8dfb1b41c70e51c2b603daaf22cf302Mark Andrews#define DNS_LOGCATEGORY_DELEGATION_ONLY (&dns_categories[10])
bc6af069c80ca33a5619d71d57859724cab1f4c4Mark Andrews#define DNS_LOGCATEGORY_EDNS_DISABLED (&dns_categories[11])
9fee08f655527a5dd849b171daeeee1dbbccca76Vernon Schryver#define DNS_LOGCATEGORY_RPZ (&dns_categories[12])
ea3aa401bc74d34560af190a4009d436054d1bfaMark Andrews#define DNS_LOGCATEGORY_CNAME (&dns_categories[14])
1479200aa05414b2acf33607dbd1682c16f58c51Evan Hunt#define DNS_LOGCATEGORY_SPILL (&dns_categories[15])
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt#define DNS_LOGCATEGORY_DNSTAP (&dns_categories[16])
5fe5a0c02634eaadfcbc3528bf2c184557110a3bAndreas Gustafsson/* Backwards compatibility. */
5fe5a0c02634eaadfcbc3528bf2c184557110a3bAndreas Gustafsson#define DNS_LOGCATEGORY_GENERAL ISC_LOGCATEGORY_GENERAL
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence#define DNS_LOGMODULE_RBTDB64 (&dns_modules[2])
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence#define DNS_LOGMODULE_MASTER (&dns_modules[5])
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence#define DNS_LOGMODULE_MESSAGE (&dns_modules[6])
61ba96e2f90930c7dfde73e05ac6d2c5a611afa7Andreas Gustafsson#define DNS_LOGMODULE_JOURNAL (&dns_modules[11])
81ae5e1ae678320e46342d4bbb71bfb81227a248Andreas Gustafsson#define DNS_LOGMODULE_XFER_IN (&dns_modules[13])
81ae5e1ae678320e46342d4bbb71bfb81227a248Andreas Gustafsson#define DNS_LOGMODULE_XFER_OUT (&dns_modules[14])
6017f424ee3c02d7f22132c77576ea38542fa949Andreas Gustafsson#define DNS_LOGMODULE_ACL (&dns_modules[15])
230bc05e7e4a6ba7fa4ee396048ab669552dcbe2Andreas Gustafsson#define DNS_LOGMODULE_VALIDATOR (&dns_modules[16])
20c266cbc999c724e03e6edd437fb4181b92f095Michael Graff#define DNS_LOGMODULE_DISPATCH (&dns_modules[17])
8b61d2012063306528286680bd9f086fa868d86eMark Andrews#define DNS_LOGMODULE_REQUEST (&dns_modules[18])
84fcfe530b60140f3f95f1d3894358d8c8ba4391Andreas Gustafsson#define DNS_LOGMODULE_MASTERDUMP (&dns_modules[19])
d4edcfe5eb6862ff4d5922e974e509d1f6cdf76fBrian Wellington#define DNS_LOGMODULE_TSIG (&dns_modules[20])
d4edcfe5eb6862ff4d5922e974e509d1f6cdf76fBrian Wellington#define DNS_LOGMODULE_TKEY (&dns_modules[21])
eac8e1d5fcccaa2af0041861f2d1edbaea234329Andreas Gustafsson#define DNS_LOGMODULE_SDB (&dns_modules[22])
911ed0d3bee586b3bec42cb6c376d5cc6c0e1e24Brian Wellington#define DNS_LOGMODULE_DIFF (&dns_modules[23])
d0eb2cc33c5db3366a16b1cb0abcca6ec7c8ee3cTatuya JINMEI 神明達哉#define DNS_LOGMODULE_ACACHE (&dns_modules[25])
c90f5e8d1edbd5c277f2ee320167a12a30ba7c7bMichael Graff * Make the libdns categories and modules available for use with the
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence * ISC logging library.
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein *\li lctx is a valid logging context.
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein *\li dns_log_init() is called only once.
45b4efd07f8d0ee11e4695900ac9ac30ec0570c1Francis Dupont * \li The categories and modules defined above are available for
edcd1247ad7e81bb8b430e610d9718f64c70f05dDavid Lawrence * use by isc_log_usechannnel() and isc_log_write().
c90f5e8d1edbd5c277f2ee320167a12a30ba7c7bMichael Graff * Make the libdns library use the provided context for logging internal
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein *\li lctx is a valid logging context.
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence#endif /* DNS_LOG_H */