[logback-user] logback 0.9.28 is noisy

David Roussel nabble at diroussel.xsmail.com
Mon Apr 11 10:07:13 CEST 2011


Hi,

I've done a trial upgrade to 0.9.28 and I get alot more noise to stdout than
I used to get.

I've seen that the 'ERROR' below is a bug that will be fixed in the next
release.  But is all the other stuff just being output because of the error? 
Will it go away once the ERRROR goes away?

Thanks

David



16:27:45,613 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found
resource [com/example/gcm/pricing/batchpricer/logback.xml] at
[jar:file:/D:/maven-lo
cal-repository/com/example/gcm/pricing-controller/4.1.3-SNAPSHOT/pricing-controller-4.1.3-SNAPSHOT.jar!/com/example/gcm/pricing/batchpricer/logback.xml]
16:27:45,753 |-ERROR in
ch.qos.logback.core.joran.spi.ConfigurationWatchList at e61a35 - URL
[jar:file:/D:/maven-local-repository/com/example/gcm/pricing-controller
/4.1.3-SNAPSHOT/pricing-controller-4.1.3-SNAPSHOT.jar!/com/example/gcm/pricing/batchpricer/logback.xml]
is not of type file
16:27:46,597 |-INFO in
ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute
not set
16:27:47,269 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
Setting level of logger [com.example.gcm] to INFO
16:27:47,269 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
Setting level of logger [com.example.gcm.launcher] to INFO
16:27:47,269 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
Setting level of logger [com.example.gcm.pricing.params.impl] to INFO
16:27:47,269 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
Setting level of logger [com.example.sky.service.DataSynapseClient] to INFO
16:27:47,269 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
Setting level of logger [httpclient] to WARN
16:27:47,269 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
Setting level of logger [org.apache] to WARN
16:27:47,269 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
Setting level of logger [org.hibernate] to WARN
16:27:47,269 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
Setting level of logger [org.hibernate.cfg.AnnotationBinder] to WARN
16:27:47,269 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
Setting level of logger [org.hibernate.cfg.annotations] to WARN
16:27:47,269 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
Setting level of logger [org.quartz] to WARN
16:27:47,269 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction -
Setting level of logger [org.springframework] to WARN
16:27:48,660 |-INFO in ch.qos.logback.core.joran.action.AppenderAction -
About to instantiate appender of type [ch.qos.logback.core.FileAppender]
16:27:48,707 |-INFO in ch.qos.logback.core.joran.action.AppenderAction -
Naming appender as [FILE]
16:27:48,816 |-INFO in
ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default
type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder]
property
16:27:49,019 |-INFO in ch.qos.logback.core.FileAppender[FILE] - File
property is set to
[\\ldn\dfs01\SKY-DEV\DEV_DR\sky\log\EOD_MTM_2011-03-31_162735.txt]
16:27:49,035 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction
- Setting level of ROOT logger to INFO
16:27:49,035 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction -
Attaching appender named [FILE] to Logger[ROOT]


Here is my config file, /com/example/gcm/pricing/batchpricer/logback.xml
And, yes 'dealpricer.logback.file' is set, so the file output is used
instead of stdout.

<configuration>
		
	<logger name="com.example.gcm" level="${log.level}" />
	<logger name="com.example.gcm.launcher" level="INFO" />
	<logger name="com.example.gcm.pricing.params.impl" level="${log.level}" /> 
<!-- Set this to trace to get full info on base correlation loading -->
	<logger name="com.example.sky.service.DataSynapseClient" level="INFO" />
	<logger name="httpclient" level="WARN" />
	<logger name="org.apache" level="WARN" />
	<logger name="org.hibernate" level="WARN" />
	<logger name="org.hibernate.cfg.AnnotationBinder" level="WARN" />
	<logger name="org.hibernate.cfg.annotations" level="WARN" />
	<logger name="org.quartz" level="WARN" />
	<logger name="org.springframework" level="WARN" />

	<!-- if we are given a file name, then log to file, else log to stdout -->
	<if condition='!property("dealpricer.logback.file").isEmpty()'>
		<then>
			<appender name="FILE" class="ch.qos.logback.core.FileAppender">
				<encoder>
					<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%-16thread] %-5level
%-35.35logger{30} - %msg%n</pattern>
				</encoder>
				<file>${dealpricer.logback.file}</file>
			</appender>
			<root level="${log.level}">
				<appender-ref ref="FILE" />
			</root>
		</then>
		<else>
			<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
				<encoder>
					<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%-16thread] %-5level
%-35.35logger{30} - %msg%n</pattern>
				</encoder>
			</appender>
			<root level="${log.level}">
				<appender-ref ref="STDOUT" />
			</root>
		</else>
	</if>

</configuration>

And here are my dependencies as configured in maven:

	<dependencies>
		<dependency>
			<groupId>commons-logging</groupId>
			<artifactId>commons-logging</artifactId>
			<version>1.1.1</version>
			<scope>provided</scope>
			<!--
				We use 'provided' so commons-logging is not actually used at runtime,
instead
				all the commons-logging API is implemented in jcl-over-slf4j
			-->
		</dependency>
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>jcl-over-slf4j</artifactId>
			<version>1.6.1</version>
		</dependency>
		<dependency>
			<groupId>ch.qos.logback</groupId>
			<artifactId>logback-classic</artifactId>
			<version>0.9.28</version>
		</dependency>
		<dependency>
			<!-- Needed for expressions in logback config file -->
			<groupId>janino</groupId>
			<artifactId>janino</artifactId>
			<version>2.5.10</version>
		</dependency>
		<dependency>
			<!-- Make java.util.logging calls feed into our slf4j/logback log -->
			<groupId>org.slf4j</groupId>
			<artifactId>jul-to-slf4j</artifactId>
			<version>1.6.1</version>
		</dependency>
	</dependencies>
-- 
View this message in context: http://old.nabble.com/logback-0.9.28-is-noisy-tp31368071p31368071.html
Sent from the Logback User mailing list archive at Nabble.com.



More information about the Logback-user mailing list