开发者

Where to find 'application.log'?

开发者 https://www.devze.com 2023-04-10 03:32 出处:网络
I\'ve enabled production mode logging in Play! and I\'m using this configuration from here http://www.playframework.org/documentation/1.2.3/production

I've enabled production mode logging in Play! and I'm using this configuration from here http://www.playframework.org/documentation/1.2.3/production

log4j.rootLogger=ERROR, Rolling

log4j.logger.play=INFO

# Rolling files
log4j.appender.Rolling=org.apache.log4j.Rolli开发者_StackOverflow社区ngFileAppender
log4j.appender.Rolling.File=application.log
log4j.appender.Rolling.MaxFileSize=1MB
log4j.appender.Rolling.MaxBackupIndex=100
log4j.appender.Rolling.layout=org.apache.log4j.PatternLayout
log4j.appender.Rolling.layout.ConversionPattern=%d{ABSOLUTE} %-5p ~ %m%n

When I run the app with play run where is application.log created?


With this config, it will be in the working directory of the application. It's maybe easier and more deterministic to put an absolute path in there.

0

精彩评论

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