Greetings!
I am trying to do this but logging agasint the object returned gives me
NullPointer exception.
If I extend the Logger class and use proper constructor why shoudl it give
problem? If I use
return Logger.getLogger(name); instead of return new MyLogger(name);
it works fine.
public final class MyLogger extends Logger{
protected MyLogger(String name){
super(name);
}
public static org.apache.log4j.Logger getLoggerInstance(String name){
return new MyLogger(name);
}
}
Thank you.
The Good One.
On 11/14/06, GoodOne <[EMAIL PROTECTED]> wrote:
Greetings!
I am trying to extend log4j Logger, something like class A subclassing
Logger. I would like to have an instance of class A returned than log4j
Logger's instance.
Any idea?
Thank you,
The Good One.