[OpenSER-Users] Re: [OpenSER-Devel] Request for comment : logging in OpenSER
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Fri Jul 13 11:09:29 CEST 2007
Henning Westerholt wrote:
> On Friday 13 July 2007, Klaus Darilion wrote:
>
>>> 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.
>
>
Exactly that's the problem - those are macros which are not standard
across compilers. For example SUNCC does not recognize them....
I admit it will be easier to have the macros, but if it is not something
portable, I will prefer to avoid it.
regards,
bogdan
More information about the Users
mailing list