I have the following configuration in logback.xml
:
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%coloredLevel %logger{15} - %class{36} - %message%n%xException{10}</pattern>
</encoder>
</appender>
And log with the following statement
Logger.info("This is a message")
However the log prints ?
instead of the class name:
[info] application - ? - This is a message
What is wrong?
%class{36}
with%class{0}
? – meucaa%C
or%class
if you do not want to reduce the number of characters of your class name. – meucaa