Working with an application using Akka 2 deployed in Play-mini. I pulled the logback into the project and it works, but its configuration breaks up, so it was necessary to execute the Joran configuration method and call it at startup. Then I read that the game moved to logback, so I rummaged through to find out how to use the logger built into Play and figured it out, but as soon as I type:
Logger.debug(
It only supports:
debug(String message, Throwable error)
debug(String message)
The whole essence of the journal is material with variable arguments, so you do not need to pollute your code:
if (Logger.isDebugEnabled()){
Logger.debug("my expensive message: " + largeObject.toString());
}
So I have to miss something. Documents are also small in this area.
BTW, here's the thread that the configuration is not confused.
source
share