Re: Configure custom logger from file

2009-04-02 Thread Yair Ogen
Naturally, but even if I set in the file: log4.loggerFactory=MyFactory And in the code I have org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger("myLogger"); I don't get the logger that my factory created. I see in debug that the factory is called but my client code still gets a n

AW: Configure custom logger from file

2009-04-02 Thread Bender Heri
Already looked at the LoggerFactory? Heri -Ursprüngliche Nachricht- Von: Yair Ogen [mailto:yairo...@gmail.com] Gesendet: Donnerstag, 2. April 2009 10:13 An: log4j-user@logging.apache.org Betreff: Configure custom logger from file Hi, I need to configure a custom Legger that extends the

Configure custom logger from file

2009-04-02 Thread Yair Ogen
Hi, I need to configure a custom Legger that extends then log4j Logger. I want users to code: Logger.getLogger, and get the custom logger. I know how to do this in code, but this will require every developer to call this code. I want to find a way to this via the log4.properties file so if all