My Play! Application doesn't have an applicati

2019-07-20 12:28发布

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

0条回答
登录 后发表回答