log.h revision 29747dfe5e073a299b3681e01f5c55540f8bfed7
69fe9aaafdd6a141610e86a777d325db75422070Mark Andrews * Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews * Copyright (C) 1999-2001, 2003 Internet Software Consortium.
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence * Permission to use, copy, modify, and distribute this software for any
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence * purpose with or without fee is hereby granted, provided that the above
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence * copyright notice and this permission notice appear in all copies.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews * PERFORMANCE OF THIS SOFTWARE.
29747dfe5e073a299b3681e01f5c55540f8bfed7Mark Andrews/* $Id: log.h,v 1.38 2006/12/22 01:45:00 marka Exp $ */
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])
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.
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein * \li The catgories 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 */