Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where do Play! logs end up?

Sorry if this is a totally noobish question, but where do Play! logs go? e.g. if I'm trying to find a full stack trace and Play! tells me something like This exception has been logged with id 67hg12dhg, where do I go to find that log?

like image 395
andronikus Avatar asked Aug 29 '11 14:08

andronikus


2 Answers

In DEV mode logs go to the console.

In PROD mode, logs are by default in logs/system.out

Check out official documentation

like image 169
i.am.michiel Avatar answered Nov 08 '22 16:11

i.am.michiel


For Play 2.2 and over (perhaps some older versions as well),if you have used the stage task, which means building your app with

play clean stage

and running it with

target/universal/stage/bin/foo

considering that your app is called foo. Then, your logs will be at

target/universal/stage/logs/application.log

like image 31
Thomas Avatar answered Nov 08 '22 14:11

Thomas