I want to write log like:
2014-04-17 11:00:16.408 [http-apr-9090-exec-4] DEBUG package.method(line) - log.
so I config the logback.xml, in the pattern, the config like:
%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36}.%M(%line) - %msg%n
Every thing shows ok except the line number, and if i add set like
%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36}.%M %line - %msg%n
Then all works. so there must be something wrong with my configuration.
Could anyone help me ? Thanks. I want to display like what I want, and no space between method name and line number.