"Fossies" - the Fresh Open Source Software Archive

Member "bind-9.16.7/lib/isccfg/log.c" (4 Sep 2020, 1020 Bytes) of package /linux/misc/dns/bind9/9.16.7/bind-9.16.7.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "log.c" see the Fossies "Dox" file reference documentation.

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