When I start my app in production mode in (tested in ubuntu and osx) the logging fails to start up. All logging is by default in play framework.
When starting my app in production mode I get:
...
Play server process ID is 8980
[info] application - Application has started
[info] play - Application started (Prod)
11:49:58,020 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
11:49:58,021 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
11:49:58,021 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.xml]
11:49:58,022 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Setting up default configuration.
11:49:58,122 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@388698fa - URL [jar:file:/Users/x/play/play-2.0.1/repository/local/play/play_2.9.1/2.0.1/jars/play_2.9.1.jar!/logger.xml] is not of type file
11:49:58,162 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
11:49:58,162 |-INFO in ch.qos.logback.core.joran.action.ConversionRuleAction - registering conversion word coloredLevel with class [play.api.Logger$ColoredLevel]
11:49:58,162 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.FileAppender]
11:49:58,163 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [FILE]
11:49:58,176 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
11:49:58,180 |-INFO in ch.qos.logback.core.FileAppender[FILE] - File property is set to [/Users/x/y/play2/y/logs/application.log]
11:49:58,181 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
11:49:58,181 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT]
11:49:58,181 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
11:49:58,182 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [play] to INFO
11:49:58,182 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [application] to INFO
11:49:58,182 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [com.avaje.ebean.config.PropertyMapLoader] to OFF
11:49:58,182 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [com.avaje.ebeaninternal.server.core.XmlConfigLoader] to OFF
11:49:58,182 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [com.avaje.ebeaninternal.server.lib.BackgroundThread] to OFF
11:49:58,182 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to ERROR
11:49:58,182 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[ROOT]
11:49:58,182 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [FILE] to Logger[ROOT]
11:49:58,183 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@ca56214 - Registering current configuration as safe fallback point
11:49:58,643 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@388698fa - URL [jar:file:/Users/x/y/play2/y/lib/neo4j-kernel-1.7.jar!/neo4j-logback.xml] is not of type file
11:49:58,645 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
11:49:58,645 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.FileAppender]
11:49:58,645 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [FILE]
11:49:58,645 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
11:49:58,646 |-INFO in ch.qos.logback.core.FileAppender[FILE] - File property is set to [/Users/x/neo2/db/messages.log]
11:49:58,647 |-ERROR in ch.qos.logback.core.joran.conditional.IfAction - Could not find Janino library on the class path. Skipping conditional processing.
11:49:58,647 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [neo4j.diagnostics] to DEBUG
11:49:58,647 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [neo4j] to false
11:49:58,648 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [FILE] to Logger[neo4j]
11:49:58,648 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to INFO
11:49:58,648 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@3dca1588 - Registering current configuration as safe fallback point
11:49:58,869 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@1e4bb369 - URL [jar:file:/Users/x/play/play-2.0.1/repository/local/play/play_2.9.1/2.0.1/jars/play_2.9.1.jar!/logger.xml] is not of type file
11:49:58,871 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
11:49:58,871 |-INFO in ch.qos.logback.core.joran.action.ConversionRuleAction - registering conversion word coloredLevel with class [play.api.Logger$ColoredLevel]
11:49:58,872 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.FileAppender]
11:49:58,872 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [FILE]
11:49:58,872 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
11:49:58,872 |-INFO in ch.qos.logback.core.FileAppender[FILE] - File property is set to [/Users/x/y/play2/y/logs/application.log]
11:49:58,872 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
11:49:58,872 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT]
11:49:58,873 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
11:49:58,873 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [play] to INFO
11:49:58,873 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [application] to INFO
11:49:58,873 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [com.avaje.ebean.config.PropertyMapLoader] to OFF
11:49:58,873 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [com.avaje.ebeaninternal.server.core.XmlConfigLoader] to OFF
11:49:58,873 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [com.avaje.ebeaninternal.server.lib.BackgroundThread] to OFF
11:49:58,873 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to ERROR
11:49:58,873 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[ROOT]
11:49:58,873 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [FILE] to Logger[ROOT]
11:49:58,873 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@7befc208 - Registering current configuration as safe fallback point
[info] play - Listening for HTTP on port 9000...
11:49:58,647 |-ERROR in ch.qos.logback.core.joran.conditional.IfAction - Could not find Janino library on the class path. Skipping conditional processing.
I guess this has to do with the support of logback in 1.7m3? :)
How to fix it?
Is there any info how to setup logback for neo4j?
Cheers,
Magnus