On Friday 13 July 2007, Klaus Darilion wrote: > Bogdan-Andrei Iancu wrote: > > Hi everybody, > > > > There is some undergoing work on the logging system in OpenSER and I > > feel that some issues should be publicly addressed before moving forward. > > > > What we have now in openser: > > 1) two logging systems - syslog and standard error > > 2) message format - totally chaos. > > > > What we want to fix: > > 1) a better way to make easy distinction between the logs from > > different levels (ERR, WARN, DBG, etc) > > 2) a standard message format that, independend of the logging support > > (syslog, stderr), will provide all the needed information (level and > > date at least). > > > > > > Here is my suggestion: > > > > 1) logging and message format: > > There will be different macros for each log level and the message > > should include the module_name and function for a better tracking of the > > messages: > > > > LOG_NOTICE("module_name:function: message") > > LOG_DBG("module_name:function: message") > > LOG_ERR("module_name:function: message") > > is it possible to write a macro which sets "module_name" and "function" > automatically?
It's possible with gcc macros to get the file and line number i think. Cheers, Henning _______________________________________________ Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users