Thanks Jose,

Well, I made a little progress:
For whatever reason commons-logging-api.jar doesn't see neither log4j nor
monolog's jars.
So, i.e. LogFactoryImpl.java:
protected boolean isLog4JAvailable() {
try {
loadClass("org.apache.log4j.Logger");
...

doesn't load lof4j. Trows exception instead. I tried moving my jar in every
single directory in Tomcat but did not help.
Any fresh ideas? :)

----- Original Message -----
From: "Jos� Antonio P�rez Testa" <[EMAIL PROTECTED]>
To: "Jakarta Commons Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, May 12, 2004 6:19 PM
Subject: Re: [logging] How to get logging to use new Monolog subclass


> Try an empty implementation of MonologLogger. Maybe the implementation
> also uses logs in any way ...
> If the empty implementation gets instantiated the problem will be in
> your implementation.
>
> If not try replacing all that code for
> return new MonologLogger("Forced")
>
> and see what happen ...
> I'm running out of ideas :)
>
> Igor Smirnov wrote:
>
> >This is odd:
> >logClass.getConstructor(logConstructorSignature)
> >
> >return a No Class Definition Exception!
> >
> >and here are the values
> >logClass= Class (org.apache.commons.logging.impl.MonologLogger)
> >I DO have a
> >    public MonologLogger(String name) {
> >        this.logger=lf.getLogger(name);
> >    }
> >
> >
> >----- Original Message -----
> >From: "Jos� Antonio P�rez Testa" <[EMAIL PROTECTED]>
> >To: "Jakarta Commons Users List" <[EMAIL PROTECTED]>
> >Sent: Wednesday, May 12, 2004 3:31 PM
> >Subject: Re: [logging] How to get logging to use new Monolog subclass
> >
> >
> >
> >
> >>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!!
> >>
> >>
> >>
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to