aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debug.c
blob: b3850f99f82ce44646fc044eb58b3036359582a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
 * (C) 2014 by Holger Hans Peter Freyther
 */
#include "syserr.h"

#include <osmocom/core/utils.h>

static const struct log_info_cat default_categories[] = {
	[DIP] = {
		.name = "DIP",
		.description = "IP Pool and other groups",
		.enabled = 1, .loglevel = LOGL_NOTICE,
	},
	[DTUN] = {
		.name = "DTUN",
		.description = "Tunnel interface",
		.enabled = 1, .loglevel = LOGL_NOTICE,
	},
	[DGGSN] = {
		.name = "DGGSN",
		.description = "GGSN",
		.enabled = 1, .loglevel = LOGL_NOTICE,
	},
	[DSGSN] = {
		.name = "DSGSN",
		.description = "SGSN Emulator",
		.enabled = 1, .loglevel = LOGL_NOTICE,
	},
};

const struct log_info log_info = {
	.cat = default_categories,
	.num_cat = ARRAY_SIZE(default_categories),
};