blob: fb8bb4b69e38ba59bf34675f1ccb41af8d6310c3 [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 *
Harald Welte3dcdd202019-03-09 13:06:46 +010017 */
18
19
Harald Welte61d98e92019-03-03 15:43:07 +010020#include <osmocom/core/logging.h>
21#include <osmocom/core/utils.h>
22#include "debug.h"
23
24static const struct log_info_cat default_categories[] = {
25 [DMAIN] = {
26 .name = "DMAIN",
Harald Welte0c7f7d42021-12-08 15:55:58 +010027 .loglevel = LOGL_INFO,
Harald Welte61d98e92019-03-03 15:43:07 +010028 .enabled = 1,
29 },
Harald Welteb97e2fb2020-03-03 21:01:11 +010030 [DST2] = {
31 .name = "DST2",
32 .loglevel = LOGL_INFO,
33 .enabled = 1,
34 },
Harald Welte46122ab2021-12-08 20:57:16 +010035 [DRSPRO] = {
36 .name = "DRSPRO",
37 .loglevel = LOGL_INFO,
38 .enabled = 1,
39 },
Harald Weltea9d7ad12021-12-08 21:09:12 +010040 [DREST] = {
41 .name = "DREST",
42 .loglevel = LOGL_INFO,
43 .enabled = 1,
44 },
45 [DSLOTMAP] = {
46 .name = "DSLOTMAP",
47 .loglevel = LOGL_INFO,
48 .enabled = 1,
49 },
50 [DBANKDW] = {
51 .name = "DBANKDW",
52 .loglevel = LOGL_INFO,
53 .enabled = 1,
54 },
Harald Welte61d98e92019-03-03 15:43:07 +010055};
56
57const struct log_info log_info = {
58 .cat = default_categories,
59 .num_cat = ARRAY_SIZE(default_categories),
60};