[logback-user] Logback always writes to the console

Rene Reuter maybedoo at gmx.de
Wed Nov 14 13:32:07 CET 2007


There no other logback.xml or logback-test.xml file in the classpath. In my
main class I've configured joran:

LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory();
		JoranConfigurator jc = new JoranConfigurator();
		try {
		} catch (JoranException e1) {
			// TODO Auto-generated catch block

Normally that should work?


-----Original Message-----
From: logback-user-bounces at qos.ch [mailto:logback-user-bounces at qos.ch] On
Behalf Of Chad La Joie
Sent: 14 November 2007 12:13
To: logback users list
Subject: Re: [logback-user] Logback always writes to the console

If that is your whole file I would guess that it was one of two things:

- Something is trying to using the logback before it's configured and so 
  logback is using its default configuration (which logs to console)

- There is another logback.xml file on your classpath that does log to 
console and that is being loaded in addition to your configuration file

I'm using 0.9.8 and I don't experience this issue, so I don't think it's 
a bug.

Rene Reuter wrote:
> I'm using Logback 0.9.8. I've configured my logback.xml file only with a 
> FileAppender.
> But it always logs to the console too, why? I don't want to see the logs 
> in the console.
> Do u know why?

Serving Swiss Universities
Chad La Joie, Software Engineer, Security
Werdstrasse 2, P.O. Box, 8021 Zurich, Switzerland
phone +41 44 268 15 75, fax +41 44 268 15 68
chad.lajoie at switch.ch, http://www.switch.ch
Logback-user mailing list
Logback-user at qos.ch

More information about the Logback-user mailing list