At 10:43 04.06.2001 -0700, you wrote:
>Ceki,
>
>The PropertyConfigurator only sets the default category factory when
>someone has specified that a different category factory be used (via the
>categoryFactory property).  Without this behaviour, we are saying go ahead
>and specify any factory you want, but you can't use it to instantiate
>categories in your code.
>
>Perhaps, as you alluded to, we could make this configurable - something
>like
>
>   log4j.defaultFactoryOverride=true
>
>would allow a configurator to modify the hierarchy's factory.

Hi Paul,

Yes, that is certainly better. 

However, I am still not satisfied with the current solution (or lack thereof) to the 
extension problem mainly due to its complexity. I think a new approach is in order. 

Here is what I have in mind:

1) Add a HashTable field to LoggingEvent.

2) Let Appenders populate this HashTable with appropriate keys and values.

3) Allow the serialization of this Hashtable field and its contents along with the 
rest of the LoggingEvent.

4) Let servers print the values in the Hashtable as they see fit.

Comments? Ceki 


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

Reply via email to