blob: 294924db82d8ee47877382db39ba156b2fe7c91e [file] [log] [blame]
Pau Espin Pedrol5ea18172018-02-20 16:48:15 +01001#include <osmocom/core/logging.h>
2#include <osmocom/core/utils.h>
3#include "debug.h"
4
5/* default categories */
6static const struct log_info_cat default_categories[] = {
7 [DMAIN] = {
8 .name = "DMAIN",
9 .description = "Main generic category",
10 .color = NULL,
11 .enabled = 1, .loglevel = LOGL_NOTICE,
12 },
Pau Espin Pedrol441d82a2018-12-04 16:37:24 +010013 [DTRXCTRL] = {
14 .name = "DTRXCTRL",
15 .description = "TRX CTRL interface",
16 .color = "\033[1;33m",
17 .enabled = 1, .loglevel = LOGL_NOTICE,
18 },
Harald Welte5cc88582018-08-17 19:55:38 +020019 [DDEV] = {
20 .name = "DDEV",
21 .description = "Device/Driver specific code",
22 .color = NULL,
23 .enabled = 1, .loglevel = LOGL_INFO,
24 },
Pau Espin Pedrolc7a0bf12018-04-25 12:17:10 +020025 [DLMS] = {
26 .name = "DLMS",
Harald Welte5cc88582018-08-17 19:55:38 +020027 .description = "Logging from within LimeSuite itself",
Pau Espin Pedrolc7a0bf12018-04-25 12:17:10 +020028 .color = NULL,
29 .enabled = 1, .loglevel = LOGL_NOTICE,
30 },
Pau Espin Pedrol5ea18172018-02-20 16:48:15 +010031};
32
33const struct log_info log_info = {
34 .cat = default_categories,
35 .num_cat = ARRAY_SIZE(default_categories),
36};