We are trying to optimize the size of files generated by log4j2. So I was thinking if we can reduce the number of characters that get printed on the final .log file. Below is the current pattern layout
log4j.appender.stdout.layout.ConversionPattern=%d{HH:mm:ss,SSS} %p [%F] %m%n
Which generates the below logs
07:37:31,416 DEBUG [FileUtils.java] bla bla bla
What I want is the below to get displayed instead
07:37:31,416 D [FileUtils.java] bla bla bla
What can I try to resolve this?