Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logback configuration problems #4551

Closed
jroper opened this issue May 28, 2015 · 1 comment
Closed

Logback configuration problems #4551

jroper opened this issue May 28, 2015 · 1 comment

Comments

@jroper
Copy link
Member

jroper commented May 28, 2015

Creating a new project on Play 2.4.0 with play-scala, when you run sbt run, you get this:

11:08:03,399 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
11:08:03,399 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
11:08:03,399 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.xml]
11:08:03,401 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Setting up default configuration.
11:08:03,463 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@19a3b24c - URL [jar:file:/Users/jroper/.ivy2/cache/com.typesafe.play/play_2.11/jars/play_2.11-2.4.0.jar!/logback-play-dev.xml] is not of type file
11:08:03,597 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
11:08:03,598 |-INFO in ch.qos.logback.core.joran.action.ConversionRuleAction - registering conversion word coloredLevel with class [play.api.Logger$ColoredLevel]
11:08:03,598 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.FileAppender]
11:08:03,605 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [FILE]
11:08:03,631 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
11:08:03,638 |-INFO in ch.qos.logback.core.FileAppender[FILE] - File property is set to [/Users/jroper/tmp/play-scala/logs/application.log]
11:08:03,640 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
11:08:03,640 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT]
11:08:03,641 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
11:08:03,643 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [play] to INFO
11:08:03,643 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [application] to INFO
11:08:03,643 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [com.avaje.ebean.config.PropertyMapLoader] to OFF
11:08:03,643 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [com.avaje.ebeaninternal.server.core.XmlConfigLoader] to OFF
11:08:03,643 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [com.avaje.ebeaninternal.server.lib.BackgroundThread] to OFF
11:08:03,643 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [com.gargoylesoftware.htmlunit.javascript] to OFF
11:08:03,643 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to WARN
11:08:03,643 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[ROOT]
11:08:03,643 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [FILE] to Logger[ROOT]
11:08:03,643 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
11:08:03,643 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@1560cbc7 - Registering current configuration as safe fallback point
11:08:35,456 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
11:08:35,456 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
11:08:35,456 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT]
11:08:35,457 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
11:08:35,458 |-ERROR in ch.qos.logback.core.pattern.parser.Compiler@4805ecdf - There is no conversion class registered for conversion word [coloredLevel]
11:08:35,458 |-ERROR in ch.qos.logback.core.pattern.parser.Compiler@4805ecdf - [coloredLevel] is not a valid conversion word
11:08:35,458 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [play] to INFO
11:08:35,458 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [application] to DEBUG
11:08:35,459 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to ERROR
11:08:35,460 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[ROOT]
11:08:35,460 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
11:08:35,460 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@416e74a7 - Registering current configuration as safe fallback point

%PARSER_ERROR[coloredLevel] - play.api.libs.concurrent.ActorSystemProvider - Starting application default Akka system: application
%PARSER_ERROR[coloredLevel] - play.api.Play$ - Application started (Dev)
jroper added a commit to jroper/playframework that referenced this issue May 28, 2015
* Made template build no longer depend on the Play build - this was
  causing big issues and confusion with scala versions etc. Instead it
  now depends on a static version of play-ws, which is ok.
* Made template build read Play version from version.sbt, but make it
  overridable for when we publish templates.
* Made template build default to Scala 2.10.5 for snapshots (this means
  it will work in CI) and 2.11.6 for production versions (which is what
  we want when we deploy the templates).
* Fixed playframework#4551, logback.xml configuration was missing coloredLevel
  configuration.
* Provided a logback.xml to template build so that s3 plugin and template
  publishing doesn't spew massive amounts of debug to console.
@marcospereira
Copy link
Member

We can close this after we cherry-pick the commits from #4553 to master branch.

@jroper jroper closed this as completed in 5d7adcb May 28, 2015
ClaraAllende pushed a commit to ClaraAllende/playframework that referenced this issue Aug 28, 2015
* Made template build no longer depend on the Play build - this was
  causing big issues and confusion with scala versions etc. Instead it
  now depends on a static version of play-ws, which is ok.
* Made template build read Play version from version.sbt, but make it
  overridable for when we publish templates.
* Made template build default to Scala 2.10.5 for snapshots (this means
  it will work in CI) and 2.11.6 for production versions (which is what
  we want when we deploy the templates).
* Fixed playframework#4551, logback.xml configuration was missing coloredLevel
  configuration.
* Provided a logback.xml to template build so that s3 plugin and template
  publishing doesn't spew massive amounts of debug to console.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants