playframework - play logging level for logback -
i'm trying set logging level debug in play application.
i able create logger.xml
file , place in conf
directory , see debug statements printed out after run sbt run
, clicks on app, run through code debug statements.
on other hand, when package app sbt dist
, don't see output application when code debug logging executed.
i can see, logger.xml
on classpath, part of 1 of jars in lib directory.
what need set able configure logging packaged application?
interesting, we've never tried running our apps logger file baked in. we've run having logger settings file on box , passing in param when starting app using -dlogger.file option described here:
http://www.playframework.com/documentation/2.1.3/settingslogger
you don't happen have passing argument in @ runtime overriding 1 on classpath? per doc (http://www.playframework.com/documentation/2.1.3/configuration) , accepted java standard, passed in property take priority on compiled with.
you might double check start script dist command creates see if argument specified , set to.
Comments
Post a Comment