I’m using this pattern:
<pattern>%d{HH:mm:ss.SSS} %-5level %logger{36} - (%file:%line) - %msg%n</pattern>
Yet the output looks like:
09:42:25.811 WARN a.a.an.dao.api.ANApi – (ANApi.java:153
The pattern appears to be truncated after the %line (it also happens if I use %L) – what am I doing wrong?
I need this specific pattern so that Eclipse’s console will recognize it.
(and)have a special meaning, as explained on logback website:In your case you need to escape them with a backslash: