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: configuring Logging
Date Wed, 02 Jun 2004 16:31:25 GMT
Commons-Logging defaults to Log4j logging when log4j.jar is in the 
application CLASSPATH.
Log4j can be configured by means of  the properties file  
log4j.properties  that  also  must be in the CLASSPATH.
You don't need to configure any property, but if you want to must be in 
the calling of  java runnable:
 > java -Dlog4jconfiguration=log4j.properties -cp <yourClasspath> 
your.main.classFileName

Ashish Naik wrote:

>Its not a web application. I donot understand how the properties are set
>e.g. log4j.configuration=log4j.properties as mentioned in the user guide. Is
>it to configure Log4J?
>
>Cheers,
>Ashish Naik
>
>
>-----Original Message-----
>From: Jose Antonio Perez Testa [mailto:japtesta@indra.es]
>Sent: 02 June 2004 16:59
>To: Jakarta Commons Users List
>Subject: Re: configuring Logging
>
>
>Hi Ashish,
>If it is a WebApp, both log4j and commons-logging jars must be in
>WEB-INF/lib
>
>
>Ashish Naik wrote:
>
>  
>
>>I am not able to understand how to confifigure Log4J for Commons logging
>>API.
>>
>>I have added log4j.jar to my classpath. How do I set
>>log4j.configuration=log4j.properties
>>
>>I am refering to Logging User Guide at
>>http://jakarta.apache.org/commons/logging/guide.html
>>
>>
>>Cheers,
>>Ashish Naik
>>
>>
>>*********************************************************
>>Disclaimer:
>>
>>This message (including any attachments) contains
>>confidential information intended for a specific
>>individual and purpose, and is protected by law.
>>If you are not the intended recipient, you should
>>delete this message and are hereby notified that
>>any disclosure, copying, or distribution of this
>>message, or the taking of any action based on it,
>>is strictly prohibited.
>>
>>*********************************************************
>>Visit us at http://www.mahindrabt.com
>>
>>
>>
>>    
>>
>----------------------------------------------------------------------------
>---------------------------------------
>Este correo electrsnico y, en su caso, cualquier fichero anexo al mismo,
>contiene informacisn de caracter confidencial exclusivamente dirigida a su
>destinatario o destinatarios. Queda prohibida su divulgacisn, copia o
>distribucisn a terceros sin la previa autorizacisn escrita de Indra. En el
>caso de haber recibido este correo electrsnico por error, se ruega notificar
>inmediatamente esta circunstancia mediante reenvmo a la direccisn
>electrsnica 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
>
>
>
>*********************************************************
>Disclaimer:          
>
>This message (including any attachments) contains 
>confidential information intended for a specific 
>individual and purpose, and is protected by law. 
>If you are not the intended recipient, you should 
>delete this message and are hereby notified that 
>any disclosure, copying, or distribution of this
>message, or the taking of any action based on it, 
>is strictly prohibited.
>
>*********************************************************
>Visit us at http://www.mahindrabt.com
>
>
>---------------------------------------------------------------------
>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