My Play! Application doesn't have an application.log

江枫思渺然 提交于 2020-01-04 05:58:32

问题


I got an error message saying:

This exception has been logged with id 1mhqg4onc

But I don't see this exception in the logs.

I only have myapp.DEBUG, myapp.ERROR, myapp.FATAL, myapp.INFO, myapp.TRACE and myapp.WARN in my myapp/logs directory.

I thought application.log was just supposed to be there by default. It's in my local machine but not when I deploy to production and that's where this exception is happening.

I tried adding a file at conf/application-logger.xml with the default logging configuration which includes info about application.log but I still don't have it.

I start my application in prod using the following in a shell script:

target/universal/stage/bin/myapp -Dhttp.port="${HTTP_PORT}" -Dconfig.resource=${CONFIG_RESOURCE}

I'm using Play! 2.2.1

来源:https://stackoverflow.com/questions/29354148/my-play-application-doesnt-have-an-application-log

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!