Play框架未登录启动模式

时间:2014-08-26 04:45:29

标签: logging playframework logback playframework-2.3

我使用activator start部署并启动播放框架。当我使用application.log模式时,日志会记录在run文件中。但是在start模式下,当项目正常运行并且工作正常时,日志记录不起作用。

开始记录:

[root@ops1 X]# activator start
[info] Loading project definition from /X
[info] Set current project to CustomerClub (in build file:/X)
[info] Wrote /X/scala-2.11/customerclub_2.11-1.0-SNAPSHOT.pom

(Starting server. Type Ctrl+D to exit logs, the server will remain in background)

Play server process ID is 25682
[info] play - datasource [jdbc:oracle:thin:@XXX] bound to JNDI as DefaultDS
[info] play - database [default] connected at jdbc:oracle:thin:@XXX
[info] play - Application started (Prod)
[info] play - Listening for HTTP on /0:0:0:0:0:0:0:0:9000

我在cent os上使用Java 8u20

1 个答案:

答案 0 :(得分:3)

在某些时候,在logger.xml配置文件中使用${application.home}参数会导致日志记录系统崩溃。 您可以create a custom logger setting file并使用显式地址

替换${application.home}