Changing the Format of Log Messages

To change the format of log messages, edit logback.xml to change the pattern of the log messages in the encoder part of the SIFT appender.

The following lines add the date to log messages:

<encoder>
   <pattern>%d{yyyyMMdd-HH:mm:ss} | %-5level | %thread | %logger{20} | %message%n%xException</pattern>
</encoder>
Read a different version of :