Loggers need to be referenced by the name passed into their constructor.
For example:
package org.something;
class A {
protected static final log = Logger.createLogger(A.class);
}
package com.something;
class B extends A { }
The name of the logger is "org.something.A" (the class reference is a
shorthand). So you'll have to configure it by that.
Paul
On Mon, Nov 16, 2009 at 3:55 AM, NiJK <[email protected]> wrote:
>
> Paul,
>
> Thanks for your reply.
>
> My DispatchActions are classes of type myproject.myactions, for example.
>
> Shouldn't I be able to add the line
> log4j.logger.myproject.myactions.myaction=DEBUG
> and have the level defined for this class alone?
>
>
> --
> View this message in context:
> http://old.nabble.com/DispatchAction-and-Log4j-tp26300684p26369293.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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]