You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by Alexander Erk <er...@irt.de> on 2003/01/20 15:37:17 UTC

log4j and log4jME

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");

...
...
...

myLogger.info("initXlet log4j");
...
...
...

BTW: I've modified the Hierarchy class with:

  public Logger getInstance (String name){
..
..
..

}

And added a new Logger class extended from Category.


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

-- 
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: erk@irt.de
Fax: +49 (0)89 32399- 200       web: www.irt.de



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: log4j and log4jME

Posted by Ceki Gülcü <ce...@qos.ch>.
At 16:12 20.01.2003 +0100, Alexander Erk wrote:
>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

I would concentrate my efforts in making log4jMini compatible with log4j 
1.2 ignoring deprecated methods or classes. The aim is to make log4jMini 
small. If users need 100% backward compatibility then they can use the 
regular log4j distribution.

Thus, log4jMini should be under or around 20Kb. In log4j 1.3, chainsaw and 
lf5 will be placed in separate jar reducing the size of log4j jar to under 
or around 200Kb.


--
Ceki



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: log4j and log4jME

Posted by Alexander Erk <er...@irt.de>.
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: erk@irt.de
>> Fax: +49 (0)89 32399- 200       web: www.irt.de
> 
> 
> -- 
> Ceki
> 
> 
> 
> -- 
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 
> 
> 



-- 
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: erk@irt.de
Fax: +49 (0)89 32399- 200       web: www.irt.de



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: log4j and log4jME

Posted by Ceki Gülcü <ce...@qos.ch>.
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)

>..
>..
>..
>
>}
>
>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.

>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: erk@irt.de
>Fax: +49 (0)89 32399- 200       web: www.irt.de

--
Ceki



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>