This is undoubtedly a dumb question, but if I do "test" at the Play 2
sbt console, where do the logs show up?
If I do "run" then they are in logs/application.log
I have some Akka logging on the console during test, but Play logging
doesn't seem to show up.
Havoc
> --
> You received this message because you are subscribed to the Google Groups "play-framework" group.
> To post to this group, send email to play-fr...@googlegroups.com.
> To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
>
--
Guillaume Bort
The logger is disabled in test mode for now because it was causing an
huge PermGen space leak when running tests. But we are working to run
tests in a forked JVM so we will enable it again soon.
On Mon, Jan 23, 2012 at 3:22 PM, Havoc Pennington <h...@pobox.com> wrote:
> Hi,
>
> This is undoubtedly a dumb question, but if I do "test" at the Play 2
> sbt console, where do the logs show up?
>
> If I do "run" then they are in logs/application.log
>
> I have some Akka logging on the console during test, but Play logging
> doesn't seem to show up.
>
> Havoc
>
> --
> You received this message because you are subscribed to the Google Groups "play-framework" group.
> To post to this group, send email to play-framework@googlegroups.com.
> To unsubscribe from this group, send email to play-framework+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
>
--
Guillaume Bort
The logger is disabled in test mode for now because it was causing an
huge PermGen space leak when running tests. But we are working to run
tests in a forked JVM so we will enable it again soon.
On Mon, Jan 23, 2012 at 3:22 PM, Havoc Pennington <h...@pobox.com> wrote:
> Hi,
>
> This is undoubtedly a dumb question, but if I do "test" at the Play 2
> sbt console, where do the logs show up?
>
> If I do "run" then they are in logs/application.log
>
> I have some Akka logging on the console during test, but Play logging
> doesn't seem to show up.
>
> Havoc
>
> --
> You received this message because you are subscribed to the Google Groups "play-framework" group.
> To post to this group, send email to play-framework@googlegroups.com.
> To unsubscribe from this group, send email to play-framework+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
>
--
Guillaume Bort
We will fix this once we will be able to fork JVM to run tests, and so
completely discard the giant PermGen memory leaks introduced by the
Java logging infrastructure.
On Wed, Jul 25, 2012 at 7:44 AM, Rintcius Blok wrote:
> FYI, I implemented a quick workaround for this issue. See
> http://stackoverflow.com/questions/11597102/how-to-force-logger-debug-output-in-play-framework-specs2-tests/11634963
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "play-framework" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/play-framework/-/utm_DgH6c2QJ.
>
> To post to this group, send email to play-framework@googlegroups.com.
> To unsubscribe from this group, send email to
> play-framework+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/play-framework?hl=en.
--
Guillaume Bort, http://guillaume.bort.fr
We will fix this once we will be able to fork JVM to run tests, and so
completely discard the giant PermGen memory leaks introduced by the
Java logging infrastructure.
On Wed, Jul 25, 2012 at 7:44 AM, Rintcius Blok wrote:
> FYI, I implemented a quick workaround for this issue. See
> http://stackoverflow.com/questions/11597102/how-to-force-logger-debug-output-in-play-framework-specs2-tests/11634963
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "play-framework" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/play-framework/-/utm_DgH6c2QJ.
>
> To post to this group, send email to play-framework@googlegroups.com.
> To unsubscribe from this group, send email to
> play-framework+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/play-framework?hl=en.
--
Guillaume Bort, http://guillaume.bort.fr
We will fix this once we will be able to fork JVM to run tests, and so
completely discard the giant PermGen memory leaks introduced by the
Java logging infrastructure.
On Wed, Jul 25, 2012 at 7:44 AM, Rintcius Blok wrote:
> FYI, I implemented a quick workaround for this issue. See
> http://stackoverflow.com/questions/11597102/how-to-force-logger-debug-output-in-play-framework-specs2-tests/11634963
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "play-framework" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/play-framework/-/utm_DgH6c2QJ.
>
> To post to this group, send email to play-framework@googlegroups.com.
> To unsubscribe from this group, send email to
> play-framework+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/8CVg81zLivIJ.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/4H-TID4ZeNkJ.
+1
To post to this group, send email to play-f...@googlegroups.com.
To unsubscribe from this group, send email to play-framewo...@googlegroups.com.
+1
Website: www.SinaBahram.com
Twitter: @SinaBahram
From: play-fr...@googlegroups.com [mailto:play-fr...@googlegroups.com] On Behalf Of Abhijeet Kumar
Sent: Monday, November 05, 2012 6:37 PM
To: play-fr...@googlegroups.com
Subject: Re: [play-framework] [2.0] logs from test
+1
To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/ar87VFbmtSsJ.
HiIf you look at Play Logger source[1], you will see that logging is disabled in Test mode.If you really want logging, you can create logging configuration file for testing and pass it to Play as system property "logger.file".Example logging configuration (test-logger.xml file in project root):<configuration><conversionRule conversionWord="coloredLevel" converterClass="play.api.Logger$ColoredLevel" /><logger name="application" level="INFO"><appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"><encoder><pattern>%coloredLevel %logger{15} - %message%n%xException{5}</pattern></encoder></appender></logger></configuration>Running tests:JAVA_OPTS="-Dlogger.file=test-logger.xml" play test-Luka