blob: 4382a47ddc41db7b03d5eb8701f81ac0f83d62ca [file] [log] [blame]
Holger Hans Peter Freytherd4310b92010-08-04 04:56:01 +08001/* cellmgr logging support code */
2/*
3 * (C) 2010 by Holger Hans Peter Freyther <zecke@selfish.org>
4 * All Rights Reserved
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 *
20 */
21
22#include <cellmgr_debug.h>
23
24#include <osmocore/utils.h>
25
26/* default categories */
27static const struct log_info_cat default_categories[] = {
28 [DINP] = {
29 .name = "DINP",
30 .description = "A-bis Intput Subsystem",
31 .enabled = 1, .loglevel = LOGL_NOTICE,
32 },
33 [DSCCP] = {
34 .name = "DSCCP",
35 .description = "SCCP Protocol",
36 .enabled = 1, .loglevel = LOGL_NOTICE,
37 },
38 [DMSC] = {
39 .name = "DMSC",
40 .description = "Mobile Switching Center",
41 .enabled = 1, .loglevel = LOGL_NOTICE,
42 },
43 [DMGCP] = {
44 .name = "DMGCP",
45 .description = "Media Gateway Control Protocol",
46 .enabled = 1, .loglevel = LOGL_NOTICE,
47 },
48};
49
50static int filter_fn(const struct log_context *ctx,
51 struct log_target *tar)
52{
53 return 0;
54}
55
56const struct log_info log_info = {
57 .filter_fn = filter_fn,
58 .cat = default_categories,
59 .num_cat = ARRAY_SIZE(default_categories),
60};
61