1 /* Logging/Debug support of the layer2/3 stack */
3 /* (C) 2010 by Harald Welte <laforge@gnumonks.org>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License along
18 * with this program; if not, write to the Free Software Foundation, Inc.,
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 #include <osmocore/utils.h>
25 #include <osmocore/logging.h>
26 #include <osmocom/logging.h>
28 static const struct log_info_cat default_categories[] = {
31 .description = "Radio Signalling Link (MS)",
32 .color = "\033[1;35m",
33 .enabled = 1, .loglevel = LOGL_DEBUG,
37 .description = "Cell selection",
39 .enabled = 1, .loglevel = LOGL_DEBUG,
43 .description = "PLMN selection",
45 .enabled = 1, .loglevel = LOGL_DEBUG,
49 .description = "Radio Resource",
50 .color = "\033[1;34m",
51 .enabled = 1, .loglevel = LOGL_DEBUG,
55 .description = "Mobility Management",
56 .color = "\033[1;32m",
57 .enabled = 1, .loglevel = LOGL_DEBUG,
61 .description = "Call Control",
62 .color = "\033[1;33m",
63 .enabled = 1, .loglevel = LOGL_DEBUG,
67 .description = "Short Message Service",
68 .color = "\033[1;37m",
69 .enabled = 1, .loglevel = LOGL_DEBUG,
73 .description = "Mobile Network Call Control",
74 .color = "\033[1;37m",
75 .enabled = 1, .loglevel = LOGL_DEBUG,
79 .description = "MEasurement Reporting",
80 .enabled = 1, .loglevel = LOGL_DEBUG,
84 .description = "Paging",
86 .enabled = 1, .loglevel = LOGL_DEBUG,
90 .description = "LAPDm Layer2",
91 .enabled = 1, .loglevel = LOGL_DEBUG,
95 .description = "Layer 1 Control",
96 .color = "\033[1;31m",
97 .enabled = 1, .loglevel = LOGL_DEBUG,
101 .description = "Summary of Process",
102 .color = "\033[1;37m",
103 .enabled = 1, .loglevel = LOGL_DEBUG,
107 const struct log_info log_info = {
109 .cat = default_categories,
110 .num_cat = ARRAY_SIZE(default_categories),