aboutsummaryrefslogtreecommitdiffstats
path: root/src/logging.c
blob: eab0510cc70cf7290b401c6b3f8aee37cf8d9934 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#include <osmocom/core/utils.h>
#include <osmocom/hlr/logging.h>

const struct log_info_cat hlr_log_info_cat[] = {
	[DMAIN] = {
		.name = "DMAIN",
		.description = "Main Program",
		.enabled = 1, .loglevel = LOGL_NOTICE,
	},
	[DDB] = {
		.name = "DDB",
		.description = "Database Layer",
		.color = "\033[1;31m",
		.enabled = 1, .loglevel = LOGL_NOTICE,
	},
	[DAUC] = {
		.name = "DAUC",
		.description = "Authentication Center",
		.color = "\033[1;33m",
		.enabled = 1, .loglevel = LOGL_NOTICE,
	},
	[DSS] = {
		.name = "DSS",
		.description = "Supplementary Services",
		.color = "\033[1;34m",
		.enabled = 1, .loglevel = LOGL_NOTICE,
	},
	[DMSLOOKUP] = {
		.name = "DMSLOOKUP",
		.description = "Mobile Subscriber Lookup",
		.color = "\033[1;35m",
		.enabled = 1, .loglevel = LOGL_NOTICE,
	},
	[DLU] = {
		.name = "DLU",
		.description = "Location Updating",
		.color = "\033[1;33m",
		.enabled = 1, .loglevel = LOGL_NOTICE,
	},
	[DDGSM] = {
		.name = "DDGSM",
		.description = "Distributed GSM: MS lookup and proxy",
		.color = "\033[1;35m",
		.enabled = 1, .loglevel = LOGL_NOTICE,
	},
};

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