Closed Kazzuk closed 2 years ago
This was done for consistency so the spacing for each log entry is exactly the same.
Current format
[FATAL] 1234567890
[ERROR] 1234567890
[WARN ] 1234567890
[INFO ] 1234567890
[DEBUG] 1234567890
[TRACE] 1234567890
Proposed format
[FATAL] 1234567890
[ERROR] 1234567890
[WARN] 1234567890
[INFO] 1234567890
[DEBUG] 1234567890
[TRACE] 1234567890
When using
%-5level
, it would return the priority level justified to a width of 5 characters, so for example if the level wasINFO
, you would be left with a trailing space after the level like so "INFO
". Using%level
instead resolves this.Before example: After example: