[SR-Users] xlog() format change from 5.3 to 5.4-nightly

Daniel-Constantin Mierla miconda at gmail.com
Wed Feb 19 08:21:11 CET 2020


OK, thanks for testing and reporting back!

Daniel

On 19.02.20 00:58, Joel Serrano wrote:
> Hi, 
>
> Just wanted to follow-up here, I've been distracted with other stuff
> sorry.
>
> I was able to test and the problem is fixed, logs are exactly what
> they are supposed to be again :)
>
> Thank you!
>
> Cheers, 
> Joel.
>
> On Sat, Feb 15, 2020 at 7:23 AM Daniel-Constantin Mierla
> <miconda at gmail.com <mailto:miconda at gmail.com>> wrote:
>
>     Hello,
>
>     try again with latest master. Printing without function name was
>     somehow lost along the development of structured logging. I just
>     pushed a bunch of commits to add a log macro to get similar output
>     for xlog functions like for past versions. Let me know if works as
>     expected now.
>
>     Cheers,
>     Daniel
>
>     On 14.02.20 21:26, Joel Serrano wrote:
>>     Hello, 
>>
>>     I've noticed that the output format of xlog() changes from 5.3 to
>>     5.4-nightly.
>>
>>     v5.3 xlog():
>>
>>     Feb 13 11:56:35 csbc01 csbc[27333]: NOTICE: {1 24727 REGISTER
>>     b1d374f6-9b8c53ff at A.B.C.D <mailto:b1d374f6-9b8c53ff at A.B.C.D>}
>>     <script>: [log] auth successful
>>
>>     v5.4-nightly xlog():
>>
>>     Feb 13 11:56:35 csbc01 csbc[27333]: NOTICE: {1 24727 REGISTER
>>     b1d374f6-9b8c53ff at A.B.C.D <mailto:b1d374f6-9b8c53ff at A.B.C.D>}
>>     <script>:xlog_helper(): [log] auth successful
>>
>>     Is there a way to avoid adding the extra "*xlog_helper():*"
>>     string? We have a lot of scripts that parse the K logs for
>>     different reasons and I would like to avoid having to update them
>>     all to match the new format.
>>
>>     I've tried adding *modparam("xlog", "prefix", "")* but it only
>>     affects the "<script>:" part and not the "xlog_helper():" part.
>>
>>     Thanks, 
>>     Joel.
>>
>>     _______________________________________________
>>     Kamailio (SER) - Users Mailing List
>>     sr-users at lists.kamailio.org <mailto:sr-users at lists.kamailio.org>
>>     https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>     -- 
>     Daniel-Constantin Mierla -- www.asipto.com <http://www.asipto.com>
>     www.twitter.com/miconda <http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda <http://www.linkedin.com/in/miconda>
>     Kamailio Advanced Training - March 9-11, 2020, Berlin - www.asipto.com <http://www.asipto.com>
>     Kamailio World Conference - April 27-29, 2020, in Berlin -- www.kamailioworld.com <http://www.kamailioworld.com>
>
-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - March 9-11, 2020, Berlin - www.asipto.com
Kamailio World Conference - April 27-29, 2020, in Berlin -- www.kamailioworld.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20200219/64ec53f4/attachment.html>


More information about the sr-users mailing list