1 /* $NetBSD: log.c,v 1.4 2021/02/19 16:42:21 christos Exp $ */ 2 3 /* 4 * Copyright (C) Internet Systems Consortium, Inc. ("ISC") 5 * 6 * This Source Code Form is subject to the terms of the Mozilla Public 7 * License, v. 2.0. If a copy of the MPL was not distributed with this 8 * file, you can obtain one at https://mozilla.org/MPL/2.0/. 9 * 10 * See the COPYRIGHT file distributed with this work for additional 11 * information regarding copyright ownership. 12 */ 13 14 /*! \file */ 15 16 #include <isc/util.h> 17 18 #include <isccfg/log.h> 19 20 /*% 21 * When adding a new category, be sure to add the appropriate 22 * \#define to <isccfg/log.h>. 23 */ 24 LIBISCCFG_EXTERNAL_DATA isc_logcategory_t cfg_categories[] = { { "config", 0 }, 25 { NULL, 0 } }; 26 27 /*% 28 * When adding a new module, be sure to add the appropriate 29 * \#define to <isccfg/log.h>. 30 */ 31 LIBISCCFG_EXTERNAL_DATA isc_logmodule_t cfg_modules[] = { 32 { "isccfg/parser", 0 }, { NULL, 0 } 33 }; 34 35 void 36 cfg_log_init(isc_log_t *lctx) { 37 REQUIRE(lctx != NULL); 38 39 isc_log_registercategories(lctx, cfg_categories); 40 isc_log_registermodules(lctx, cfg_modules); 41 } 42