Pau Espin Pedrol | 5ea1817 | 2018-02-20 16:48:15 +0100 | [diff] [blame] | 1 | #include <osmocom/core/logging.h> |
| 2 | #include <osmocom/core/utils.h> |
| 3 | #include "debug.h" |
| 4 | |
| 5 | /* default categories */ |
| 6 | static 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 | }, |
Harald Welte | 5cc8858 | 2018-08-17 19:55:38 +0200 | [diff] [blame] | 13 | [DDEV] = { |
| 14 | .name = "DDEV", |
| 15 | .description = "Device/Driver specific code", |
| 16 | .color = NULL, |
| 17 | .enabled = 1, .loglevel = LOGL_INFO, |
| 18 | }, |
Pau Espin Pedrol | c7a0bf1 | 2018-04-25 12:17:10 +0200 | [diff] [blame] | 19 | [DLMS] = { |
| 20 | .name = "DLMS", |
Harald Welte | 5cc8858 | 2018-08-17 19:55:38 +0200 | [diff] [blame] | 21 | .description = "Logging from within LimeSuite itself", |
Pau Espin Pedrol | c7a0bf1 | 2018-04-25 12:17:10 +0200 | [diff] [blame] | 22 | .color = NULL, |
| 23 | .enabled = 1, .loglevel = LOGL_NOTICE, |
| 24 | }, |
Pau Espin Pedrol | 5ea1817 | 2018-02-20 16:48:15 +0100 | [diff] [blame] | 25 | }; |
| 26 | |
| 27 | const struct log_info log_info = { |
| 28 | .cat = default_categories, |
| 29 | .num_cat = ARRAY_SIZE(default_categories), |
| 30 | }; |