By default all Logger output, visible when an application is running, is mute when the application is tested.
How to force the debugs, infos etc. to be shown in the specs2 reports?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First off, you may like some background why logging is disabled in test mode. This was Guillame Bort’s answer to a question in the play forum (see this thread):
As a workaround, I created my own logger like this (Scala code):
I don’t know how this code behaves regarding the PermGen leak in general, but so far I didn’t have that problem.
To make it work you need to add this dependency: