|
Packit Service |
ae04f2 |
/*
|
|
Packit Service |
ae04f2 |
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
|
Packit Service |
ae04f2 |
*
|
|
Packit Service |
ae04f2 |
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
Packit Service |
ae04f2 |
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
Packit Service |
ae04f2 |
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
Packit Service |
ae04f2 |
*
|
|
Packit Service |
ae04f2 |
* See the COPYRIGHT file distributed with this work for additional
|
|
Packit Service |
ae04f2 |
* information regarding copyright ownership.
|
|
Packit Service |
ae04f2 |
*/
|
|
Packit Service |
ae04f2 |
|
|
Packit Service |
ae04f2 |
|
|
Packit Service |
ae04f2 |
/*! \file */
|
|
Packit Service |
ae04f2 |
|
|
Packit Service |
ae04f2 |
#include <config.h>
|
|
Packit Service |
ae04f2 |
|
|
Packit Service |
ae04f2 |
#include <isc/util.h>
|
|
Packit Service |
ae04f2 |
|
|
Packit Service |
ae04f2 |
#include <isccfg/log.h>
|
|
Packit Service |
ae04f2 |
|
|
Packit Service |
ae04f2 |
/*%
|
|
Packit Service |
ae04f2 |
* When adding a new category, be sure to add the appropriate
|
|
Packit Service |
ae04f2 |
* \#define to <isccfg/log.h>.
|
|
Packit Service |
ae04f2 |
*/
|
|
Packit Service |
ae04f2 |
LIBISCCFG_EXTERNAL_DATA isc_logcategory_t cfg_categories[] = {
|
|
Packit Service |
ae04f2 |
{ "config", 0 },
|
|
Packit Service |
ae04f2 |
{ NULL, 0 }
|
|
Packit Service |
ae04f2 |
};
|
|
Packit Service |
ae04f2 |
|
|
Packit Service |
ae04f2 |
/*%
|
|
Packit Service |
ae04f2 |
* When adding a new module, be sure to add the appropriate
|
|
Packit Service |
ae04f2 |
* \#define to <isccfg/log.h>.
|
|
Packit Service |
ae04f2 |
*/
|
|
Packit Service |
ae04f2 |
LIBISCCFG_EXTERNAL_DATA isc_logmodule_t cfg_modules[] = {
|
|
Packit Service |
ae04f2 |
{ "isccfg/parser", 0 },
|
|
Packit Service |
ae04f2 |
{ NULL, 0 }
|
|
Packit Service |
ae04f2 |
};
|
|
Packit Service |
ae04f2 |
|
|
Packit Service |
ae04f2 |
void
|
|
Packit Service |
ae04f2 |
cfg_log_init(isc_log_t *lctx) {
|
|
Packit Service |
ae04f2 |
REQUIRE(lctx != NULL);
|
|
Packit Service |
ae04f2 |
|
|
Packit Service |
ae04f2 |
isc_log_registercategories(lctx, cfg_categories);
|
|
Packit Service |
ae04f2 |
isc_log_registermodules(lctx, cfg_modules);
|
|
Packit Service |
ae04f2 |
}
|