I have a play framework app with all standard configurations. I modify logback.xml
like this:
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%coloredLevel %logger{15} %L - %message%n%xException{10} </pattern>
</encoder>
</appender>
I tried instead of %L
put there %line
, %class
, etc. - all to the same result, it outputs ?
in the log message, like this:
[info] application ? - Checking cart...
I also tried to follow the accepted answer to this question: Scala Play framework: logger pattern for displaying file and line
and put val logger = Logger(this.getClass)
inside my class. Still same result. Is there any way to fix it? Logback version specified in build.sbt is 2.11
.