Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 63218 invoked from network); 10 May 2004 16:15:51 -0000 Received: from unknown (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 10 May 2004 16:15:51 -0000 Received: (qmail 37909 invoked by uid 500); 10 May 2004 16:16:14 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 37846 invoked by uid 500); 10 May 2004 16:16:13 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 37832 invoked by uid 98); 10 May 2004 16:16:13 -0000 Received: from japtesta@indra.es by hermes.apache.org by uid 82 with qmail-scanner-1.20 (clamuko: 0.70. Clear:RC:0(213.170.46.10):. Processed in 0.123825 secs); 10 May 2004 16:16:13 -0000 X-Qmail-Scanner-Mail-From: japtesta@indra.es via hermes.apache.org X-Qmail-Scanner: 1.20 (Clear:RC:0(213.170.46.10):. Processed in 0.123825 secs) Received: from unknown (HELO madimc1.indra.es) (213.170.46.10) by hermes.apache.org with SMTP; 10 May 2004 16:16:13 -0000 Received: from indra.es ([192.168.168.19]) by madimc1.indra.es with Microsoft SMTPSVC(5.0.2195.6747); Mon, 10 May 2004 18:15:28 +0200 Message-ID: <409FAA70.3090209@indra.es> Date: Mon, 10 May 2004 18:14:40 +0200 From: =?ISO-8859-1?Q?Jos=E9_Antonio_P=E9rez_Testa?= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a) Gecko/20040420 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jakarta Commons Users List Subject: Re: [logging] How to get logging to use new Monolog subclass References: <005e01c43664$8c926390$1700a8c0@talicnitom> <1084176662.5614.136.camel@pcsimon> <001901c43667$e4395330$1700a8c0@talicnitom> <1084179375.5443.174.camel@pcsimon> <409F4777.30007@indra.es> <003101c43695$52cdc2e0$1700a8c0@talicnitom> In-Reply-To: <003101c43695$52cdc2e0$1700a8c0@talicnitom> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 10 May 2004 16:15:28.0640 (UTC) FILETIME=[026F3800:01C436AA] X-Spam-Rating: hermes.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I'm using jakarta-tomcat-4.1.12-LE with java j2sdk1.4.1_02 In my WEB_INF/lib : (maybe some of the libraries are innecesary ... ) commons-collections-2.0.jar commons-logging-1.0.jar servletapi-2.3.jar xalan.jar log4j.jar xerces.jar xml-apis-2.0.0.jar in my WEB-INF/classes/log4j.properties logs_path=/tmp/logs log4j.rootCategory=debug,Raiz,stdout log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=%d [%5p %c] Console- %m%n log4j.appender.Raiz=org.apache.log4j.RollingFileAppender log4j.appender.Raiz.File=${logs_path}/logFile.log log4j.appender.Raiz.layout=org.apache.log4j.PatternLayout log4j.appender.Raiz.MaxBackupIndex=1 log4j.appender.Raiz.MaxFileSize=100MB log4j.appender.Raiz.layout.ConversionPattern=%t %d [%5p %c] - %m%n and that's all friends!! Igor Smirnov wrote: >Are you using commons logging with Tomcat? Any hints how to set up Tomcat to >use commons logging? > >Best regards, >Igor. > >----- Original Message ----- >From: "Jos� Antonio P�rez Testa" >To: "Jakarta Commons Users List" >Sent: Monday, May 10, 2004 11:12 AM >Subject: Re: [logging] How to get logging to use new Monolog subclass > > > > >>By default Commons Logging uses Log4j implementation, if the libraries >>are available on the classpath you should be able to log to a Log4j >>implementation without no configuration (apart from log4j.properties or >>equivalent xml file). >>I am writing logs to log4j with Commons Logging in many projects and the >>only difficults I've found were with AppServer precedence of libraries. >>You should try to configure log4j implementation first, and when this >>implementation works give a try with Monolog >> >> >>Simon Kitching wrote: >> >> > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org >For additional commands, e-mail: commons-user-help@jakarta.apache.org > > > ------------------------------------------------------------------------------------------------------------------- Este correo electr�nico y, en su caso, cualquier fichero anexo al mismo, contiene informaci�n de car�cter confidencial exclusivamente dirigida a su destinatario o destinatarios. Queda prohibida su divulgaci�n, copia o distribuci�n a terceros sin la previa autorizaci�n escrita de Indra. En el caso de haber recibido este correo electr�nico por error, se ruega notificar inmediatamente esta circunstancia mediante reenv�o a la direcci�n electr�nica del remitente. The information in this e-mail and in any attachments is confidential and solely for the attention and use of the named addressee(s). You are hereby notified that any dissemination, distribution or copy of this communication is prohibited without the prior written consent of Indra. If you have received this communication in error, please, notify the sender by reply e-mail --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org