[logback-user] logback always printing status information?!
Christian Migowski
chrismfwrd at gmail.com
Mon Mar 22 14:57:52 CET 2010
Hi,
for some reasons logback always prints out it's status/debug
information to STDOUT although I didn't ask for it, what could be the
reason for this? I have this very simple logback.xml file which path I
pass through command line parameter
-Dlogback.configurationFile=/home/u123456/bmbstatistics/conf/logback.xml
(it was created using the translator tool on the website from a log4j
properties file (which btw doesn't "transfer" the properties like
LOG_PATH, so a little manual modification was necessary)
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<property name="GENERIC_PATTERN" value="[%d{dd.MM.yyyy
HH:mm:ss.SSS}] [%t] [%-5p] [%c{2}] %m%n" />
<property name="LOG_PATH" value="./log" />
<appender name="FileAppender"
class="ch.qos.logback.core.rolling.RollingFileAppender">
<!--See also
http://logback.qos.ch/manual/appenders.html#RollingFileAppender-->
<File>${LOG_PATH}/statistics.log</File>
<layout class="ch.qos.logback.classic.PatternLayout">
<Pattern>${GENERIC_PATTERN}</Pattern>
</layout>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<maxIndex>20</maxIndex>
<FileNamePattern>${LOG_PATH}/statistics.log.%i</FileNamePattern>
</rollingPolicy>
<triggeringPolicy
class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<MaxFileSize>20MB</MaxFileSize>
</triggeringPolicy>
</appender>
<root level="DEBUG">
<appender-ref ref="FileAppender"/>
</root>
</configuration>
When I start my application with this config the following appears on stdout:
12:55:20,531 |-INFO in ch.qos.logback.classic.LoggerContext[default] -
Found resource [FILE:/home/u123456/bmbstatistics/conf/logback.xml] at
[file:/home/u123456/bmbstatistics/conf/logback.xml]
12:55:20,687 |-INFO in
ch.qos.logback.classic.joran.action.ConfigurationAction - debug
attribute not set
12:55:20,688 |-INFO in
ch.qos.logback.classic.turbo.ReconfigureOnChangeFilter at 291946c2 - Will
scan for changes in file
[/home/u123456/bmbstatistics/conf/logback.xml] every 60 seconds.
12:55:20,688 |-INFO in
ch.qos.logback.classic.joran.action.ConfigurationAction - Adding
ReconfigureOnChangeFilter as a turbo filter
12:55:20,690 |-INFO in ch.qos.logback.core.joran.action.AppenderAction
- About to instantiate appender of type
[ch.qos.logback.core.rolling.RollingFileAppender]
12:55:20,698 |-INFO in ch.qos.logback.core.joran.action.AppenderAction
- Naming appender as [FileAppender]
12:55:20,748 |-INFO in
ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Pushing
component [layout] on top of the object stack.
12:55:20,814 |-INFO in
ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Pushing
component [rollingPolicy] on top of the object stack.
12:55:20,827 |-INFO in
ch.qos.logback.core.rolling.FixedWindowRollingPolicy at 3a747fa2 - No
compression will be used
12:55:20,828 |-WARN in
ch.qos.logback.core.rolling.FixedWindowRollingPolicy at 3a747fa2 - Large
window sizes are not allowed.
12:55:20,828 |-WARN in
ch.qos.logback.core.rolling.FixedWindowRollingPolicy at 3a747fa2 -
MaxIndex reduced to 13
12:55:20,832 |-INFO in
ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Pushing
component [triggeringPolicy] on top of the object stack.
12:55:20,840 |-INFO in
ch.qos.logback.core.rolling.RollingFileAppender[FileAppender] - Active
log file name: ./log/bmbstatistics.log
12:55:20,840 |-INFO in
ch.qos.logback.core.rolling.RollingFileAppender[FileAppender] - File
property is set to [./log/bmbstatistics.log]
12:55:20,841 |-INFO in ch.qos.logback.core.joran.action.AppenderAction
- Popping appender named [FileAppender] from the object stack
12:55:20,841 |-INFO in
ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level
of ROOT logger to DEBUG
12:55:20,842 |-INFO in
ch.qos.logback.core.joran.action.AppenderRefAction - Attaching
appender named [FileAppender] to Logger[ROOT]
How can I disable this logging to stdout?
thanks in adavance,
regards,
christian!
More information about the Logback-user
mailing list