blob: a5386976695dc70ee4cdc12d0835fe0652c8c521 [file] [log] [blame]
Harald Welte3dcdd202019-03-09 13:06:46 +01001/* (C) 2018-2019 by Harald Welte <laforge@gnumonks.org>
2 *
3 * All Rights Reserved
4 *
5 * SPDX-License-Identifier: GPL-2.0+
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along
18 * with this program; if not, write to the Free Software Foundation, Inc.,
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 */
22
23
Harald Welte61d98e92019-03-03 15:43:07 +010024#include <osmocom/core/logging.h>
25#include <osmocom/core/utils.h>
26#include "debug.h"
27
28static const struct log_info_cat default_categories[] = {
29 [DMAIN] = {
30 .name = "DMAIN",
Harald Welte0c7f7d42021-12-08 15:55:58 +010031 .loglevel = LOGL_INFO,
Harald Welte61d98e92019-03-03 15:43:07 +010032 .enabled = 1,
33 },
Harald Welteb97e2fb2020-03-03 21:01:11 +010034 [DST2] = {
35 .name = "DST2",
36 .loglevel = LOGL_INFO,
37 .enabled = 1,
38 },
Harald Welte46122ab2021-12-08 20:57:16 +010039 [DRSPRO] = {
40 .name = "DRSPRO",
41 .loglevel = LOGL_INFO,
42 .enabled = 1,
43 },
Harald Welte61d98e92019-03-03 15:43:07 +010044};
45
46const struct log_info log_info = {
47 .cat = default_categories,
48 .num_cat = ARRAY_SIZE(default_categories),
49};