commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From José Antonio Pérez Testa <japte...@indra.es>
Subject Re: [logging] How to get logging to use new Monolog subclass
Date Mon, 10 May 2004 16:14:40 GMT
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" <japtesta@indra.es>
>To: "Jakarta Commons Users List" <commons-user@jakarta.apache.org>
>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


Mime
View raw message