Holger Hans Peter Freyther | d4310b9 | 2010-08-04 04:56:01 +0800 | [diff] [blame] | 1 | /* 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 */ |
| 27 | static 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 | }, |
Holger Hans Peter Freyther | c21cfaa | 2010-12-10 03:53:28 +0100 | [diff] [blame] | 48 | [DISUP] = { |
| 49 | .name = "DISUP", |
| 50 | .description = "ISUP", |
| 51 | .enabled = 1, .loglevel = LOGL_NOTICE, |
| 52 | }, |
Holger Hans Peter Freyther | d4310b9 | 2010-08-04 04:56:01 +0800 | [diff] [blame] | 53 | }; |
| 54 | |
| 55 | static int filter_fn(const struct log_context *ctx, |
| 56 | struct log_target *tar) |
| 57 | { |
| 58 | return 0; |
| 59 | } |
| 60 | |
| 61 | const struct log_info log_info = { |
| 62 | .filter_fn = filter_fn, |
| 63 | .cat = default_categories, |
| 64 | .num_cat = ARRAY_SIZE(default_categories), |
| 65 | }; |
| 66 | |