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@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@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.
Hi Joel,
It might be a regression introduced recently from the logging infrastructure refactoring.
I agree, it should not change without reason.
Cheers,
Henning
-- Henning Westerholt - https://skalatan.de/blog/ Kamailio services - https://skalatan.de/services ________________________________ From: sr-users sr-users-bounces@lists.kamailio.org on behalf of Joel Serrano joel@textplus.com Sent: Friday, February 14, 2020 9:26:12 PM To: Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Subject: [SR-Users] xlog() format change from 5.3 to 5.4-nightly
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@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@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.
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@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@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@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
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@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@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@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 Listsr-users@lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla -- www.asipto.comwww.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
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@gmail.com mailto:miconda@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@A.B.C.D <mailto:b1d374f6-9b8c53ff@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@A.B.C.D <mailto:b1d374f6-9b8c53ff@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@lists.kamailio.org <mailto:sr-users@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>