Ignores line break %n if message is empty (2.5.43)

Posted on Dec 17, 2021 at 6:27 PM
Posted on Dec 17, 2021 at 6:51 PM
Hi Igor,

This is by design.  Parser configurations must describe the all log entries in the log file.  In this case, the log entry does not have a message, but the parser configuration states that it should, so the parsing continues automatically on the next line.

You could try using something like:
%d %p [%t]%m%n


In this case, the space after the ']' token should be picked up as the message.  The disadvantage of this approach is that your messages will have an extra space in them.

Hope that helps,

Toby

This topic is closed and cannot receive new replies.