Dynamically change the log level for Play Framework (SLF4J)

56 views
Skip to first unread message

kk

unread,
Apr 20, 2017, 3:08:38 AM4/20/17
to BaasBox
Hi, 

How to dynamically change the log level for play.Logger? 

I understand play uses SLF4J logger underneath. Googled it, but couldn't find the answer to it. Some posts say that's SLF4J doesn't provide this ability as there is no use-case. 
How do I debug an issue in production or test without dynamically changing the log level? 

There is one way to provide a different logging configuration file for debug. But, that will require me to restart my webserver on AWS to change a system property. 
Moreover, I am deploying using Tomcat, that uses war file and it doesn't have the logging configuration xml files in it. 

Please advice. 
Reply all
Reply to author
Forward
0 new messages