libosmocore/src
Pablo Neira Ayuso 04139f14b6 vty: integration with logging framework
The logging categories are registered by the applications, like
osmo-nitb, during startup. Thus, the VTY have to provide the logging
commands according to the logging categories that the application
has registered.

Before this patch, the VTY contained the logging categories
hardcoded. Thus, any change in the logging categories by the
application would not be shown by the VTY.

So far, this was not a problem because all applications used the
same logging categories. However, according to what Harald told
me, this may be a problem in the future.

This patch resolve the lack of integration between the logging
framework and the VTY by generating the VTY logging commands
from the logging categories registered.

Since this patch changes one function of the libosmocore API,
it follows another patch for the openbsc application to get in
sync with the new function layout.

I have reworked and renamed the functions:

 * log_vty_category_string()
 * log_vty_level_string()

to provide the new ones that generate the exact output that VTY
requires.

This patch does not release the memory allocated by
talloc_zero_size() to store the VTY strings for the commands
and the description. I found no exit function that can clean
up resources that were allocated.
2011-03-19 18:33:48 -03:00
..
codec codec: Add bit ordering tables from specs for HR,FR,EFR & AMR 2010-10-15 09:45:04 +02:00
vty vty: integration with logging framework 2011-03-19 18:33:48 -03:00
Makefile.am LOGGING: Add syslog log target 2011-02-17 15:56:56 +01:00
bits.c ubit2pbit flushes at the wrong moment, added one note to bits.h 2011-01-22 22:48:37 +01:00
bitvec.c bitvec: Fix decoding of H / L values 2010-10-24 11:59:33 +02:00
comp128.c intial checkin of the libosmocore project 2010-02-20 20:34:29 +01:00
crc16.c Added crc16 from linux kernel. 2010-07-15 22:43:52 +02:00
gprs_cipher_core.c GPRS: Add 'input' generator functions for GPRS cipher algorithm 2010-06-30 19:50:14 +02:00
gsm48.c Add 3-digit MNC support to gsm48_generate_lai() 2010-07-12 09:12:46 +02:00
gsm48_ie.c gsm48: Fix gsm48_encode_called - Set no extension bit 2010-09-20 20:59:23 +02:00
gsm0480.c gsm0480: Add method create own number response 2010-10-18 17:04:49 +02:00
gsm0808.c gsm0808: Move the clear request from bsc_msc_ip to here 2010-11-04 12:42:50 +01:00
gsm_utils.c gsm_utils: Define 4 upper bits as "flags" and mask them out in utility functions 2010-11-13 17:51:37 +01:00
gsmtap_util.c [gsmtap] add new gsmtap_makemsg() function 2010-06-29 22:31:21 +02:00
logging.c vty: integration with logging framework 2011-03-19 18:33:48 -03:00
logging_syslog.c LOGGING: configure logging from the vty 2011-02-18 20:37:04 +01:00
msgb.c msgb: Add non-inlined helper functions to ease with language bindings 2010-10-18 18:22:31 +02:00
msgfile.c msgfile: Allow to have comments in the simple CSV file 2010-10-26 09:32:35 +02:00
panic.c Move the generate backtrace call from MSGB_ABORT to osmo_panic handler 2010-11-13 22:47:47 +01:00
plugin.c plugin: Blind build fix for OSX... 2010-08-31 17:14:04 +08:00
process.c Make sure we don't user std{err,in,out} if they don't exist. 2010-09-17 14:38:17 +02:00
rate_ctr.c rate_ctr: No need to include the inttypes.h 2010-12-20 13:38:22 +01:00
rsl.c move hexdump() from logging.c to utils.c 2010-07-30 11:40:32 +02:00
rxlev_stat.c rxlev_stat: Fix compiler warning 2011-02-19 16:35:47 +01:00
select.c select.c: Change license terms from GPLv2 (from ulogd) to GPLv2+ 2010-10-31 13:56:45 +01:00
signal.c intial checkin of the libosmocore project 2010-02-20 20:34:29 +01:00
statistics.c intial checkin of the libosmocore project 2010-02-20 20:34:29 +01:00
talloc.c intial checkin of the libosmocore project 2010-02-20 20:34:29 +01:00
timer.c intial checkin of the libosmocore project 2010-02-20 20:34:29 +01:00
tlv_parser.c Added single octet TV (type + value) to libosmocore. 2010-07-12 08:55:14 +02:00
utils.c LOGGING: configure logging from the vty 2011-02-18 20:37:04 +01:00
write_queue.c write_queue: Only pop the queue if it is not empty 2011-02-15 01:01:44 +01:00