Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #8427

Re: Logging

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!news.tele.dk!feed118.news.tele.dk!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
Date Fri, 30 Sep 2011 21:18:22 -0400
From Arne Vajhøj <arne@vajhoej.dk>
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2
MIME-Version 1.0
Newsgroups comp.lang.java.programmer
Subject Re: Logging
References <d5f48d66-ea74-4da5-bafd-0d2b0b2f8f19@y18g2000yqy.googlegroups.com>
In-Reply-To <d5f48d66-ea74-4da5-bafd-0d2b0b2f8f19@y18g2000yqy.googlegroups.com>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Lines 15
Message-ID <4e866a62$0$288$14726298@news.sunsite.dk> (permalink)
Organization SunSITE.dk - Supporting Open source
NNTP-Posting-Host 72.192.23.141
X-Trace news.sunsite.dk DXC=mDd?hSTk5hPPJU4WZUlGaXYSB=nbEKnk[RaZ^n=XfmbWJPe3\kP5EUQKBm9cfh9BSTM2;kT<[:>[Q<bH>46;LMIQ2Uf?kicYe?P
X-Complaints-To staff@sunsite.dk
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:8427

Show key headers only | View raw


On 9/28/2011 2:15 AM, Ilya Lakhmitski wrote:
> Is there a way do not print to the console the message:
>
> log4j:WARN No appenders could be found for logger?

If you want log output, then configure log4j properly
(see the log4j docs on how to do that).

If you don't want that, then put this in the top
of your main:

Logger.getRootLogger().addAppender(new NullAppender());

Arne

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Logging Ilya Lakhmitski <ilya.lakhmitski@gmail.com> - 2011-09-27 23:15 -0700
  Re: Logging Tobi <tobias.schulzeheinrichs@googlemail.com> - 2011-09-29 03:04 -0700
  Re: Logging Arne Vajhøj <arne@vajhoej.dk> - 2011-09-30 21:18 -0400
    Re: Logging Robert Klemme <shortcutter@googlemail.com> - 2011-10-01 11:23 +0200
      Re: Logging Arne Vajhøj <arne@vajhoej.dk> - 2011-10-01 15:54 -0400

csiph-web