Hi Guys,
I have some difficulties to configure the log in production
I followed this page:
https://github.com/playframework/Play20/wiki/ProductionConfigurationI use the play dist command to generate the distrib package
Then I use this command to start the server
./start -Dlogger.file=/var/www/logger.xml -Dconfig.file=/var/www/prod.conf -Dhttp.port=9001
The configuration and port is well loaded, not the logger config.
I use the latest Play 2.1-SNAPSHOT
Furthermore,
I have different behavior between my mac and a debian machine. The classpath is not loaded in the same way
If I use a logback.xml in /conf instead of a logger.xml. The logger config is well loaded on my mac but not in a debian machine.
On a mac
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/Users/arnaud/dist/streamhub-analytics-1.0-SNAPSHOT/lib/ch.qos.logback.logback-classic-1.0.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/Users/arnaud/dist/streamhub-analytics-1.0-SNAPSHOT/lib/org.slf4j.slf4j-log4j12-1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/Users/arnaud/dist/streamhub-analytics-1.0-SNAPSHOT/lib/org.slf4j.slf4j-simple-1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See
http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
On a debian box (Linux sh-arnaud 2.6.32-5-amd64 #1 SMP Thu Mar 22 17:26:33 UTC 2012 x86_64 GNU/Linux)
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/var/www/streamhub-analytics-1.0-SNAPSHOT/lib/org.slf4j.slf4j-log4j12-1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/var/www/streamhub-analytics-1.0-SNAPSHOT/lib/org.slf4j.slf4j-simple-1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/var/www/streamhub-analytics-1.0-SNAPSHOT/lib/ch.qos.logback.logback-classic-1.0.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See
http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
Have you ever had some logging issue? What command do you use?
What should I do to make the logging works on my production environment?
Thanks a lot for your help!
Arnaud.