开发者

Where do Play! logs end up?

开发者 https://www.devze.com 2023-04-01 01:13 出处:网络
Sorry if this is a totally noobi开发者_如何学Gosh 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 w

Sorry if this is a totally noobi开发者_如何学Gosh 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?


In DEV mode logs go to the console.

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

Check out official documentation


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

0

精彩评论

暂无评论...
验证码 换一张
取 消