我什么时候可以在游戏中找到日志文件?
When I can find log file in the play?
日志文件在哪个文件夹?应用模式为DEV.
Play version is 1.3.1.
默认只在控制台显示。
如果要输出到文件,必须创建log4j配置文件。
https://www.playframework.com/documentation/1.3.x/production#logging
您需要将自定义文件创建为 conf/log4j.properties,其中包括:
log4j.rootLogger=Rolling
# Rolling files
log4j.appender.Rolling.File=/var/log/application.log //This is your log-file path
之后你必须从 conf/application.conf 引用这个文件作为:
application.log.path=/log4j.properties
日志文件在哪个文件夹?应用模式为DEV.
Play version is 1.3.1.
默认只在控制台显示。
如果要输出到文件,必须创建log4j配置文件。
https://www.playframework.com/documentation/1.3.x/production#logging
您需要将自定义文件创建为 conf/log4j.properties,其中包括:
log4j.rootLogger=Rolling
# Rolling files
log4j.appender.Rolling.File=/var/log/application.log //This is your log-file path
之后你必须从 conf/application.conf 引用这个文件作为:
application.log.path=/log4j.properties