Adjustments to the default format for idp-process.log entries
Key details
Basics
Logistics
Basics
Logistics
Description
I'd like to suggest the changes appended below to the default format for the idp-process.log:
1) add the full date to each message - while it's true that the YYYY-MM-DD is also "encoded" in the file name (after rotation), this information can sometimes get lost (when extracts are copied etc). Having it "inline" as well seems preferrable to me.
2) only output exceptions in the short format, by default. (%ex{short} "prints the first line of the stack trace", otherwise the Logback default applies - the "PatternLayout will automatically add it as the last conversion word" if it's not explicitly specified - http://logback.qos.ch/manual/layouts.html)
I'd like to suggest the changes appended below to the default format for the idp-process.log:
1) add the full date to each message - while it's true that the YYYY-MM-DD is also "encoded" in the file name (after rotation), this information can sometimes get lost (when extracts are copied etc). Having it "inline" as well seems preferrable to me.
2) only output exceptions in the short format, by default. (%ex{short} "prints the first line of the stack trace", otherwise the Logback default applies - the "PatternLayout will automatically add it as the last conversion word" if it's not explicitly specified - http://logback.qos.ch/manual/layouts.html)
Thanks for considering these for 2.3.
Index: REL_2/src/installer/resources/conf-tmpl/logging.xml
===================================================================
— REL_2/src/installer/resources/conf-tmpl/logging.xml (revision 2988)
+++ REL_2/src/installer/resources/conf-tmpl/logging.xml (working copy)
@@ -63,7 +63,7 @@
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<charset>UTF-8</charset>
<Pattern>%date{HH:mm:ss.SSS} - %level [%logger:%line] - %msg%n</Pattern>
+ <Pattern>%date{ISO8601} - %level [%logger:%line] - %msg%n%ex{short}</Pattern>
</encoder>
</appender>