2001-02-22 02:39:24 +00:00
|
|
|
/*
|
2006-12-22 01:59:44 +00:00
|
|
|
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
2001-02-22 02:39:24 +00:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MPL-2.0
|
2021-06-03 08:37:05 +02:00
|
|
|
*
|
2001-02-22 02:39:24 +00:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
|
2018-02-23 09:53:12 +01:00
|
|
|
*
|
2001-02-22 02:39:24 +00:00
|
|
|
* See the COPYRIGHT file distributed with this work for additional
|
|
|
|
* information regarding copyright ownership.
|
|
|
|
*/
|
|
|
|
|
2005-04-27 04:57:32 +00:00
|
|
|
/*! \file */
|
2001-02-22 02:39:24 +00:00
|
|
|
|
|
|
|
#include <isc/util.h>
|
|
|
|
|
|
|
|
#include <isccfg/log.h>
|
|
|
|
|
2005-04-27 04:57:32 +00:00
|
|
|
/*%
|
2001-02-22 02:39:24 +00:00
|
|
|
* When adding a new category, be sure to add the appropriate
|
2006-12-22 01:46:19 +00:00
|
|
|
* \#define to <isccfg/log.h>.
|
2001-02-22 02:39:24 +00:00
|
|
|
*/
|
2021-06-10 08:06:48 +02:00
|
|
|
isc_logcategory_t cfg_categories[] = { { "config", 0 }, { NULL, 0 } };
|
2001-02-22 02:39:24 +00:00
|
|
|
|
2005-04-27 04:57:32 +00:00
|
|
|
/*%
|
2001-02-22 02:39:24 +00:00
|
|
|
* When adding a new module, be sure to add the appropriate
|
2006-12-22 01:46:19 +00:00
|
|
|
* \#define to <isccfg/log.h>.
|
2001-02-22 02:39:24 +00:00
|
|
|
*/
|
2021-06-10 08:06:48 +02:00
|
|
|
isc_logmodule_t cfg_modules[] = { { "isccfg/parser", 0 }, { NULL, 0 } };
|
2001-02-22 02:39:24 +00:00
|
|
|
|
|
|
|
void
|
2001-03-13 03:04:09 +00:00
|
|
|
cfg_log_init(isc_log_t *lctx) {
|
2001-02-22 02:39:24 +00:00
|
|
|
REQUIRE(lctx != NULL);
|
|
|
|
|
2001-03-13 03:04:09 +00:00
|
|
|
isc_log_registercategories(lctx, cfg_categories);
|
|
|
|
isc_log_registermodules(lctx, cfg_modules);
|
2001-02-22 02:39:24 +00:00
|
|
|
}
|