Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 29636 invoked from network); 5 Sep 2007 17:51:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Sep 2007 17:51:49 -0000 Received: (qmail 38074 invoked by uid 500); 5 Sep 2007 17:51:37 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 38050 invoked by uid 500); 5 Sep 2007 17:51:37 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 38039 invoked by uid 99); 5 Sep 2007 17:51:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Sep 2007 10:51:37 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Sep 2007 17:52:50 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1ISz1y-0006on-OK for user@geronimo.apache.org; Wed, 05 Sep 2007 10:51:10 -0700 Message-ID: <12507419.post@talk.nabble.com> Date: Wed, 5 Sep 2007 10:51:10 -0700 (PDT) From: =?UTF-8?Q?Waldo_Ram=C3=ADrez_Monta=C3=B1o?= To: user@geronimo.apache.org Subject: Re: Logging in Geronimo 2.0.1 In-Reply-To: <545329.93165.qm@web27711.mail.ukl.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: waldo.ramirez@correo.unam.mx References: <12465934.post@talk.nabble.com> <545329.93165.qm@web27711.mail.ukl.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org Thanks for your answer, But that's the problem :( Previously, an app in Geronimo 1.1.1 worked ok and it creates the log as yo= u described, but in Geronimo 2.0.1... the same config didn't work!!! Even I've tested inverse classloading in Geronimo's deployment descriptor and the same. I'll compare your xml with mine; thanks again. Waldo Xh wrote: >=20 > Hi, >=20 > You can use Your own Log4j configuration in your applications (to tell th= e > truth I've only used it in WAR). >=20 > Below is my configuration that works with WAS-CE (based on Geronimo 1.1). > It should also work on G2.0.1 (I have G2.0.1, but I haven't migrated the > project, yet). >=20 > Place Your own log4j.xml and log4j.dtd in e.g. WEB-INF/classes directory > (it must be on the class path). Add log4j librarry to Your project > WEB-INF/lib. >=20 > To load new instance of Log4J Logger and all other classes, You need to > inform Geronimo that > You want Your own classes to be loaded, in deployment file e.g. > geronimo-web.ml in add this: >=20 > > org.apache.log4j > >=20 > Geronimo will load Your classes from org.apache.log4j package (including > sub-packages). >=20 > My log4j.xml looks sth like this: >=20 > > > > > =20 > > =20 > > > =20 > =20 > > > > =20 > > =20 > > > =20 > =20 > > > class=3D"org.apache.log4j.DailyRollingFileAppender"> > =20 > =20 > =20 > > =20 > > >=20 > > > > > > > >=20 > And now all logs of Your application will be logged into: >=20 > ${org.apache.geronimo.server.dir}/var/log/Log4jTest.log >=20 > It works perfect ;) >=20 > best regards > =C5=81ukasz >=20 > ----- Original Message ---- > From: Waldo Ram=C3=ADrez Monta=C3=B1o > To: user@geronimo.apache.org > Sent: Monday, 3 September, 2007 8:14:09 PM > Subject: Logging in Geronimo 2.0.1 >=20 >=20 > Hello, >=20 > Is it possible that deployments (EJB's, WAR's, EAR's) have their own > log-files in Geronimo 2.0.1? >=20 > Thanks again, > Waldo >=20 > --=20 > View this message in context: > http://www.nabble.com/Logging-in-Geronimo-2.0.1-tf4373488s134.html#a12465= 934 > Sent from the Apache Geronimo - Users mailing list archive at Nabble.com. >=20 >=20 >=20 >=20 >=20 >=20 > ___________________________________________________________=20 > Want ideas for reducing your carbon footprint? Visit Yahoo! For Good=20 > http://uk.promotions.yahoo.com/forgood/environment.html >=20 >=20 --=20 View this message in context: http://www.nabble.com/Logging-in-Geronimo-2.0= .1-tf4373488s134.html#a12507419 Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.