Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 85919 invoked from network); 1 Aug 2008 07:31:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Aug 2008 07:31:54 -0000 Received: (qmail 77346 invoked by uid 500); 1 Aug 2008 07:31:53 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 77329 invoked by uid 500); 1 Aug 2008 07:31:53 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 77317 invoked by uid 99); 1 Aug 2008 07:31:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Aug 2008 00:31:53 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [84.14.163.131] (HELO trinity.anyware-tech.com) (84.14.163.131) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Aug 2008 07:30:55 +0000 Received: from localhost (localhost [127.0.0.1]) by trinity.anyware-tech.com (Postfix) with ESMTP id CD150400053 for ; Fri, 1 Aug 2008 09:30:49 +0200 (CEST) Received: from trinity.anyware-tech.com ([127.0.0.1]) by localhost (trinity.anyware-tech.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23722-01 for ; Fri, 1 Aug 2008 09:30:48 +0200 (CEST) Received: from [10.0.1.122] (krusty.anyware [10.0.1.122]) by trinity.anyware-tech.com (Postfix) with ESMTP id E9DDB4000BC for ; Fri, 1 Aug 2008 09:30:48 +0200 (CEST) Message-ID: <4892BBB2.9060108@anyware-tech.com> Date: Fri, 01 Aug 2008 09:30:58 +0200 From: =?ISO-8859-1?Q?S=E9bastien_Launay?= User-Agent: Thunderbird 2.0.0.16 (X11/20080724) MIME-Version: 1.0 To: users@jackrabbit.apache.org Subject: Re: Stop Jackrabbit-Core to be verbose on console References: <7dd976500807310700xb2263cg6568c2f40e3f619@mail.gmail.com> <4891C7DC.4070101@anyware-tech.com> <7dd976500807310752g66f71890q1dfada61d27c24e3@mail.gmail.com> In-Reply-To: <7dd976500807310752g66f71890q1dfada61d27c24e3@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Debian amavisd-new at anyware-tech.com X-Virus-Checked: Checked by ClamAV on apache.org If you choose to use the log4j implementation you just need to configure log4j before loading Jackrabbit classes. Multiple configuration are possible [1]. J2EE listeners can also be used to configure log4j before creating Logger and therefore share the same configuration. If not configured, log4j will output messages in the default ouput stream and therefore in the console in your case. If you already have a configuration you just need to add the category "org.apache.jackrabbit" and use WARN or ERROR level which will be less verbose. [1] http://commons.apache.org/logging/guide.html#Configuring%20Log4J [2] http://static.springframework.org/spring/docs/2.5.x/api/org/springframework/web/util/Log4jConfigListener.html -- S�bastien Launay Peter Koch a �crit : > Hi S�bastien, > thanks for your fast answer. > I've checkt slf4j into my project, but where is the configurationfile to > modify the logging of jackrabbit-Core? > The propertie-file on my project only handle my own logging statements... > > Thanks, > Peter > > 2008/7/31 S�bastien Launay > > >> Hi Peter, >> >> SLF4J is used to log messages and can be configured to use log4j >> very much like Jakarta Commons Logging. >> >> You just need to add the jar slf4j-log4j12-1.0.jar to the classpath. >> >> For more information, see: >> >> http://www.mail-archive.com/jackrabbit-dev@incubator.apache.org/msg05003.html >> >> -- >> S�bastien Launay >> >> Peter Koch a �crit : >> >>> Hi at all, >>> I've got a short question: >>> Is it possible to stop Jackrabbit printing information on console or >>> configure them with an Logging-System like Log4J? >>> >>> typical example of printing: >>> " >>> 187 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - Starting >>> repository... >>> 234 [main] INFO org.apache.jackrabbit.core.fs.local.LocalFileSystem - >>> LocalFileSystem initialized at path *** >>> 625 [main] INFO org.apache.jackrabbit.core.fs.local.LocalFileSystem - >>> LocalFileSystem initialized at path ***