[2.0] Enable logging for tests

322 views
Skip to first unread message

Larry Edelstein

unread,
Apr 30, 2012, 12:46:38 AM4/30/12
to play-fr...@googlegroups.com
How can I enable logging when I'm running tests? I assume it will require a tweak to source code, but I'm not sure where.

I've read that the logging was disabled because it caused huge Permgen leaks, but I'd like to be able to use it from time to time. Seeing our own application logging is -pretty darn important- when trying to figure out why tests are failing.

Larry Edelstein
Sr. Software Engineer
Klout, Inc.

Larry Edelstein

unread,
Apr 30, 2012, 8:55:17 PM4/30/12
to play-fr...@googlegroups.com
I found I can enable logging by specifying one of logger's system properties a la:

System.setProperty("logger.file", "conf/logger.xml")

I'd sure like to turn that on and off from the sbt shell, but I haven't figured out how, yet, so I'm placing that line at the top of my specification.

peter hausel

unread,
May 1, 2012, 8:08:18 AM5/1/12
to play-fr...@googlegroups.com
Logging is disabled for tests temporary due to pergem leaks in logback. There is a new SBT feature about forking the JVM for test which will let us re-enable logging in tests. Once a new version of sbt is released with this feature, we will switch over and change back logging for tests.

Thanks,
Peter

Alex Jarvis

unread,
Jun 24, 2012, 7:32:07 AM6/24/12
to play-fr...@googlegroups.com
Is there any update on this?

Thanks,
Alex

Radzislaw Galler

unread,
Aug 4, 2012, 5:12:42 AM8/4/12
to play-fr...@googlegroups.com

Ben McCann

unread,
Jan 15, 2013, 6:07:47 PM1/15/13
to play-fr...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages