Python Logger

Guest on Nabble: Norbert

We have log files created by a python test framework.
Entries look like this:

2017-10-26 15:24:12,461 my.test.framework.gui.mypanel[DEBUG]: Selected building tasks panel

Currently LOG4VIEW only creates read errors while reading this logfile.
Is it possible to create a specific layout pattern for this log format?

Thanks,
Norbert

Dear Norbert,

yes, when adding your file receiver you can set a pattern layout instead of using xml formatted messages.
Then just use the following pattern:
%d %logger[%level]: %m

Yet please be aware that pattern formated messages may sometimes cause problems due to ambiguity of patterns, e.g. when there are line breaks within the actual message text.

Yours sincerely

Philipp Lauchner
PROSA GmbH
Development & Support