summaryrefslogtreecommitdiffstats
path: root/osmo-gsup-hlr/src/logging.c
blob: 54c89007556777f1ddfd837224b073e343141f61 (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
#include <osmocom/core/utils.h>
#include "logging.h"

const struct log_info_cat hlr_log_info_cat[] = {
	[DMAIN] = {
		.name = "DMAIN",
		.description = "Main Program",
		.enabled = 1, .loglevel = LOGL_DEBUG,
	},
	[DDB] = {
		.name = "DDB",
		.description = "Database Layer",
		.color = "\033[1;31m",
		.enabled = 1, .loglevel = LOGL_DEBUG,
	},
	[DLGSUP] = {
		.name = "DLGSUP",
		.description = "GSUP Protocol",
		.color = "\033[1;32m",
		.enabled = 1, .loglevel = LOGL_INFO,
	},
	[DAUC] = {
		.name = "DAUC",
		.description = "Authentication Center",
		.color = "\033[1;33m",
		.enabled = 1, .loglevel = LOGL_DEBUG,
	},
};

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