Ceki Gülcü wrote:
At 15:37 20.01.2003 +0100, Alexander Erk wrote:

Hello dear log4j developers,

I've modified the log4jME source in a form that it is in the line with the log4j stuff.

This means an application can do:

static Logger myLogger = Logger.getLogger("foo.bar.FooBar");

BTW: I've modified the Hierarchy class with:

public Logger getInstance (String name){

I think the preferred form is

public Logger getLogger(String name)
Sorry, of course that's they way I 've done it.


..
..
..

}

And added a new Logger class extended from Category.

Given that log4jMini's primary goal is reduced size, I would simply drop the Category class and use Logger instead.
First I've tried to refactor the Category into Logger, which worked fine, but then I saw that I also have to change it from

public Logger getInstance (String name)

also to

public Logger getLogger(String name)

and in order to keep up backwards compatibility I decided to extend org.apache.log4j.Category and modify org.apache.log4j.Hierarchy





Should I sent you a patch or the complete modified log4jME code. What to you suggest ?

Please do.

--
Alexander Erk, Dipl.-Inf. (FH)
Institut fuer Rundfunktechnik GmbH
Diensteentwicklung und Medieninfrastruktur
Floriansmuehlstr. 60
80939 Muenchen, Germany

Tel: +49 (0)89 32399- 282       e-mail: [EMAIL PROTECTED]
Fax: +49 (0)89 32399- 200       web: www.irt.de

--
Ceki



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





--
Alexander Erk, Dipl.-Inf. (FH)
Institut fuer Rundfunktechnik GmbH
Diensteentwicklung und Medieninfrastruktur
Floriansmuehlstr. 60
80939 Muenchen, Germany

Tel: +49 (0)89 32399- 282       e-mail: [EMAIL PROTECTED]
Fax: +49 (0)89 32399- 200       web: www.irt.de



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

Reply via email to