diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-12-04 16:32:37 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-12-04 16:51:15 +0100 |
commit | 9c7fd8edc4f114ea77b955fb7aaac51fb5c828d4 (patch) | |
tree | ea8273f03a9581474df87db998e464c8dae96fec /lib/debug.c | |
parent | e527ef105f8742b1e37677e58c5b69530e674cce (diff) |
logging: Switch to using libosmocore logging for all the code
Diffstat (limited to 'lib/debug.c')
-rw-r--r-- | lib/debug.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/lib/debug.c b/lib/debug.c new file mode 100644 index 0000000..b3850f9 --- /dev/null +++ b/lib/debug.c @@ -0,0 +1,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), +}; |