On 09/06/2010 07:09 PM, Paolo Bonzini wrote:

> 
> Do you have a pointer to the API you're taking inspiration from?


Header File:

http://git.osmocom.org/gitweb?p=libosmocore.git;a=blob;f=include/osmocore/logging.h;h=7f33155a8330d5bc59d0262140ed3e8fea34050a;hb=HEAD

Implementation:
http://git.osmocom.org/gitweb?p=libosmocore.git;a=blob;f=src/logging.c;h=5be4e58ed485837dca221a6f0f3f48387e7620ca;hb=HEAD

Config/Setup:
http://openbsc.osmocom.org/trac/browser/openbsc/src/bsc_hack.c#L223

(create a target to log to stderr, initialize the area used by the app,
 allow everything to pass the filter)

Filter/Context setup:
http://openbsc.osmocom.org/trac/browser/openbsc/src/abis_rsl.c#L125


The framework is working good in OpenBSC. With the different targets we can
enable to log to our telnet interface (VTY from quagga), but only log messages
related to a specific subscriber (e.g. doing call testing and only want to see
my own messages).

_______________________________________________
help-smalltalk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

Reply via email to