log.h revision 911ed0d3bee586b3bec42cb6c376d5cc6c0e1e24
1fdd2470b625a58b57d0b155e6caf8c4fc0afe8aAutomatic Updater * Copyright (C) 1999, 2000 Internet Software Consortium.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont * Permission to use, copy, modify, and distribute this software for any
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater * purpose with or without fee is hereby granted, provided that the above
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont * copyright notice and this permission notice appear in all copies.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont/* $Id: log.h,v 1.26 2000/12/09 02:17:11 bwelling Exp $ */
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont/* Principal Authors: DCL */
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#define DNS_LOGCATEGORY_NOTIFY (&dns_categories[0])
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#define DNS_LOGCATEGORY_DATABASE (&dns_categories[1])
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews#define DNS_LOGCATEGORY_SECURITY (&dns_categories[2])
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#define DNS_LOGCATEGORY_CONFIG (&dns_categories[3])
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#define DNS_LOGCATEGORY_DNSSEC (&dns_categories[4])
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#define DNS_LOGCATEGORY_RESOLVER (&dns_categories[5])
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#define DNS_LOGCATEGORY_XFER_IN (&dns_categories[6])
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#define DNS_LOGCATEGORY_XFER_OUT (&dns_categories[7])
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#define DNS_LOGCATEGORY_DISPATCH (&dns_categories[8])
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont/* Backwards compatibility. */
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#define DNS_LOGCATEGORY_GENERAL ISC_LOGCATEGORY_GENERAL
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#define DNS_LOGMODULE_RBTDB64 (&dns_modules[2])
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater#define DNS_LOGMODULE_MASTER (&dns_modules[5])
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#define DNS_LOGMODULE_MESSAGE (&dns_modules[6])
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater#define DNS_LOGMODULE_CONFIG (&dns_modules[8])
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#define DNS_LOGMODULE_RESOLVER (&dns_modules[9])
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#define DNS_LOGMODULE_JOURNAL (&dns_modules[11])
28b3569d6248168e6c00caab951521cc8141a49dAutomatic Updater#define DNS_LOGMODULE_ADB (&dns_modules[12])
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#define DNS_LOGMODULE_XFER_IN (&dns_modules[13])
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#define DNS_LOGMODULE_XFER_OUT (&dns_modules[14])
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater#define DNS_LOGMODULE_VALIDATOR (&dns_modules[16])
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#define DNS_LOGMODULE_DISPATCH (&dns_modules[17])
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#define DNS_LOGMODULE_REQUEST (&dns_modules[18])
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#define DNS_LOGMODULE_MASTERDUMP (&dns_modules[19])
28b3569d6248168e6c00caab951521cc8141a49dAutomatic Updater#define DNS_LOGMODULE_TKEY (&dns_modules[21])
28b3569d6248168e6c00caab951521cc8141a49dAutomatic Updater#define DNS_LOGMODULE_SDB (&dns_modules[22])
731cc132f22dbc9e0ecd7035dce314a61076d31bAutomatic Updater#define DNS_LOGMODULE_DIFF (&dns_modules[23])
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont * Make the libdns categories and modules available for use with the
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont * ISC logging library.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont * lctx is a valid logging context.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont * dns_log_init() is called only once.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont * The catgories and modules defined above are available for
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont * use by isc_log_usechannnel() and isc_log_write().
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont * Make the libdns library use the provided context for logging internal
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont * lctx is a valid logging context.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#endif /* DNS_LOG_H */