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 Wed, 12 May 2004 13:31:38 GMT
Well done!
if everything is right  logClass must be YourImplementation.class and 
if  YourImplementation has a constructor like
public YourImplementation(String name) {....}
it HAS TO work!!

Igor Smirnov wrote:

>First of all, I have to admin I'd been stupid! :)
>there is a commons-logging-api in bin folder, that isn't only the api but
>the whole implementation. When I removed it I finally could start doing
>actual tests...
>
>Now, I came up with an excepntion. I happens in getLogConstructor method od
>the LogFactoryImpl
>logMethod stays null, and logConstructor stays null, therefore
>LogConfigurationException!
>The code
>try {
>logMethod = logClass.getMethod("setLogFactory",
>logMethodSignature);
>} catch (Throwable t) {
>logMethod = null;}
>// Identify the corresponding constructor to be used
>try {
>logConstructor = logClass.getConstructor(logConstructorSignature);
>return (logConstructor);
>} catch (Throwable t) {
>throw new LogConfigurationException
>("No suitable Log constructor " + logConstructorSignature+ " for " +
>logClassName, t);}
>
>Igor
>
>  
>
-------------------------------------------------------------------------------------------------------------------
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