summaryrefslogtreecommitdiffstats
path: root/osmo-gsup-hlr/src/logging.c
diff options
context:
space:
mode:
Diffstat (limited to 'osmo-gsup-hlr/src/logging.c')
-rw-r--r--osmo-gsup-hlr/src/logging.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/osmo-gsup-hlr/src/logging.c b/osmo-gsup-hlr/src/logging.c
new file mode 100644
index 0000000..54c8900
--- /dev/null
+++ b/osmo-gsup-hlr/src/logging.c
@@ -0,0 +1,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),
+};