log.h revision 5fe5a0c02634eaadfcbc3528bf2c184557110a3b
7d32c065c7bb56f281651ae3dd2888f32ce4f1d9Bob Halley * Copyright (C) 1999, 2000 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.
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
5fe5a0c02634eaadfcbc3528bf2c184557110a3bAndreas Gustafsson/* $Id: log.h,v 1.13 2000/03/23 00:53:45 gson Exp $ */
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence/* Principal Authors: DCL */
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])
249aa1914b5462a77f24c4a8dc9a1b9f0ff8ee5fJames Brister#define DNS_LOGCATEGORY_CONFIG (&dns_categories[3])
5fe5a0c02634eaadfcbc3528bf2c184557110a3bAndreas Gustafsson/* Unused slot */
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])
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])
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence * Make the libdns.a categories and modules available for use with the
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence * ISC logging library.
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence * lctx is a valid logging context.
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence * dns_log_init() is called only once.
edcd1247ad7e81bb8b430e610d9718f64c70f05dDavid Lawrence * The catgories and modules defined above are available for
edcd1247ad7e81bb8b430e610d9718f64c70f05dDavid Lawrence * use by isc_log_usechannnel() and isc_log_write().
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence#endif /* DNS_LOG_H */