Return-Path: Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: (qmail 91911 invoked from network); 7 Feb 2006 12:28:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Feb 2006 12:28:34 -0000 Received: (qmail 58951 invoked by uid 500); 7 Feb 2006 12:28:29 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 58928 invoked by uid 500); 7 Feb 2006 12:28:29 -0000 Mailing-List: contact log4j-user-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Users List" Reply-To: "Log4J Users List" Delivered-To: mailing list log4j-user@logging.apache.org Received: (qmail 58917 invoked by uid 99); 7 Feb 2006 12:28:29 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Feb 2006 04:28:29 -0800 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=RCVD_IN_BL_SPAMCOP_NET,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of norbert.tothgati@gmail.com designates 66.249.92.193 as permitted sender) Received: from [66.249.92.193] (HELO uproxy.gmail.com) (66.249.92.193) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Feb 2006 04:28:28 -0800 Received: by uproxy.gmail.com with SMTP id u2so1091860uge for ; Tue, 07 Feb 2006 04:28:07 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=k2gVvqCWuZlGrBC7hVyXZUzleVpBA05ezw079FW8yrlO5XRNJm2tGPQmQ8gdusMmXssGLGBJnnvgL0EGz9JnJXd4M3p8pzbsXO8Mcg6nhEgEx8stbMBBpYCbnOdBNx41DrvB9RIvlNlOgcxDURhW6cLn7+THiDeAX0lUehpNCtE= Received: by 10.48.244.4 with SMTP id r4mr1481672nfh; Tue, 07 Feb 2006 04:28:06 -0800 (PST) Received: by 10.48.206.10 with HTTP; Tue, 7 Feb 2006 04:28:06 -0800 (PST) Message-ID: <9f35fcc70602070428l30106e4flb7ed44ac2f976213@mail.gmail.com> Date: Tue, 7 Feb 2006 13:28:06 +0100 From: Norbert Toth-Gati To: Log4J Users List Subject: Re: where do you put the log4j.properties in J2EE? In-Reply-To: <96d4ad0b0602070401u336c8f50pb9821ffb9364c043@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <96d4ad0b0602070401u336c8f50pb9821ffb9364c043@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Kameron, In case you are using an application server with your system, I would suggest you place your log4j configuration file in the app. servers configuration directory. For example, in case of using JBoss, you may place it jboss-4.0.1sp1\server\..\conf directory. Hope that helps, Norbert On 2/7/06, kameron cole wrote: > I've searched wide for the answer of where to put the log4j.properties fi= le > in a J2EE system. It's kind of sad to me that none of the articles begin= s > to address this really essential part of the set up. > > in one obscure post, someone said a "quick fix" was to put it in one of t= he > extension classloader folders for the various appservers. can't really b= e a > good thing, since it would affect everybody else's log4j. still, it does > work. > > so, it's not a problem that I don't understand the classpath - it's that > log4j looks somewhere, not everywhere, for a file called log4j.properties= . > someone must know that exact place where the log4j designers intended to = put > that file. > > thank you for any and all answers. > > -- > yours, > k. > > --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-user-help@logging.apache.org