[OpenSER-Devel] openser error logs

Bogdan-Andrei Iancu bogdan at voice-system.ro
Fri Nov 23 13:18:22 UTC 2007


oh.....I see....in syslog.

The LM_* functions do not write (in the message) the logging level when 
using syslog - this is directly passed to syslog, so you can use syslog 
to divert the errors in a different log file.

Regards,
Bogdan

Ovidiu Sas wrote:
> Hmmm ... I doesn't.
>
> The following LM_ERR:
> parse_from.c:           LM_ERR("bad from header\n");
> will generate the following syslog:
> Nov 23 08:54:57 localhost /usr/local/sbin/openser[22588]:
> core:parse_from_header: bad from header
>
>
> Regards,
> Ovidiu Sas
>
> On Nov 23, 2007 3:35 AM, Bogdan-Andrei Iancu <bogdan at voice-system.ro> wrote:
>   
>> Hi Ovidiu,
>>
>> But if you use LM_ERR(), it will always prefix the ERROR string. Isn't
>> this was you want?
>>
>> regards,
>> bogdan
>>
>>
>> Ovidiu Sas wrote:
>>     
>>> Hi all,
>>>
>>>
>>> I suggest to prefix all the openser error logs with the prefix "ERR:".
>>> This will make debugging more easier.
>>> Today, all the logs are having the same format and it is not straight
>>> forward to spot an error in the logs.
>>> This should be fairly easy with the new LM_ logging format.
>>>
>>>
>>> Regards,
>>> Ovidiu Sas
>>>
>>> _______________________________________________
>>> Devel mailing list
>>> Devel at lists.openser.org
>>> http://lists.openser.org/cgi-bin/mailman/listinfo/devel
>>>
>>>
>>>       
>>     
>
>   




More information about the Devel mailing list