[OpenSER-Devel] openser error logs

Dan Pascu dan at ag-projects.com
Fri Nov 23 17:16:42 UTC 2007


This is worse than before. I don't want to split my syslog into 4 files 
just to know which ones are errors, which ones are warnings and which are 
notices or info messages. I want to read a single syslog and see if 
something is an error or a warning. I want to see all the messages 
interleaved in their chronological order and to know what is each, not to 
run tail -f on 4 files and restore their order them in my head...

On Friday 23 November 2007, Bogdan-Andrei Iancu wrote:
> Yes :).
>
> Regards,
> Bogdan
>
> Ovidiu Sas wrote:
> > I see.  This is done on purpose (new approach). OK.
> >
> > Thank you,
> > Ovidiu
> >
> > On Nov 23, 2007 8:18 AM, Bogdan-Andrei Iancu <bogdan at voice-system.ro> 
wrote:
> >> 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
>
> _______________________________________________
> Devel mailing list
> Devel at lists.openser.org
> http://lists.openser.org/cgi-bin/mailman/listinfo/devel



-- 
Dan



More information about the Devel mailing list