A note on how to change Play Framework logging levels

As a brief note to self, when you need to change Play Framework logging, such as to change it to more of a debug mode, edit the logback.xml file and add/change entries like these:

<logger name="play"        level="INFO" />
<logger name="application" level="DEBUG" />
<logger name="controllers" level="DEBUG" />
<logger name="models"      level="DEBUG" />

The last two entries (controllers and models) are probably the ones that you want to change the logging level on, as those entries correspond to the models and controllers you’re creating in your Play application.

(Note: This note is valid for Play Framework 2.6.)