I'm using Play 2.1. I'm using the default logger play.api.Logger. I'm confused about how it works.
In my scala code, a line in class "com.myapp.tickets" in the method "getPayment()" like this
Logger.info("getTickets")
generates a log message like this.
14:58:58.005 INFO application play.api.LoggerLike$class info getTickets
My application-logger.xml pattern is
%d{HH:mm:ss.SSS} %-5level %logger %class %method %msg%n
The issue I have is that %logger tells me "application", %class tells me "play.api.LoggerLike$class and %method tells me "info". I know all of that. I of course want to avoid adding more cruft into the message itself (like the class name or method).
If I print out the call stack (%caller) then level 2 has what I want, but that does not seem a viable way to generate a log.
How do I configure it to output the application specific class and method, not the class and method of the logger itself?