log.c

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2004-2007  Internet Systems Consortium, Inc. ("ISC")
00003  * Copyright (C) 2001  Internet Software Consortium.
00004  *
00005  * Permission to use, copy, modify, and/or distribute this software for any
00006  * purpose with or without fee is hereby granted, provided that the above
00007  * copyright notice and this permission notice appear in all copies.
00008  *
00009  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
00010  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
00011  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
00012  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
00013  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
00014  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
00015  * PERFORMANCE OF THIS SOFTWARE.
00016  */
00017 
00018 /* $Id: log.c,v 1.11 2007/06/19 23:47:22 tbox Exp $ */
00019 
00020 /*! \file */
00021 
00022 #include <config.h>
00023 
00024 #include <isc/util.h>
00025 
00026 #include <isccfg/log.h>
00027 
00028 /*%
00029  * When adding a new category, be sure to add the appropriate
00030  * \#define to <isccfg/log.h>.
00031  */
00032 LIBISCCFG_EXTERNAL_DATA isc_logcategory_t cfg_categories[] = {
00033         { "config",     0 },
00034         { NULL,         0 }
00035 };
00036 
00037 /*%
00038  * When adding a new module, be sure to add the appropriate
00039  * \#define to <isccfg/log.h>.
00040  */
00041 LIBISCCFG_EXTERNAL_DATA isc_logmodule_t cfg_modules[] = {
00042         { "isccfg/parser",      0 },
00043         { NULL,                 0 }
00044 };
00045 
00046 void
00047 cfg_log_init(isc_log_t *lctx) {
00048         REQUIRE(lctx != NULL);
00049 
00050         isc_log_registercategories(lctx, cfg_categories);
00051         isc_log_registermodules(lctx, cfg_modules);
00052 }

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