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 "Camara Melgosa, Javier" <JC...@softwareag.es> on 2005/02/24 18:22:10 UTC
Using log4j Appender classes in java.util.logging
Hi. I have just created a java.util.logging.Handler class allowing to
plug-in regular Appender classes in the java.util.logging system, so that
applications using this system can benefit from the large number of
Appenders out there. They are plugged in just via standard configuration
java.util.logging files (plus the regular log4j configuration), without
changing the code. In this way we hope to be able to use the standard
java.util.logging facilities, while not risking to lose the superior
abilities of log4j and related tools.
This feature does not help in enhancing the java.util.logging configuration,
but I have also created other classes for this, which allow to create more
than one instance of a java.util.Handler while having each one of them using
different configuration parameters taken from the standard configuration
files. It should work with most standard Handlers, including the one I
created to plug in Appenders, so allowing for more than one Appender to be
plugged in.
I actually am surprised of not having found these features out there. Maybe
I did not search hard enough? Am I wrong, and these very same things have
been already solved long time ago by you or others?
If not, I thought you could be interested on them, although since they
actually promote the usage of java.util.logging and hide log4j behind, this
may not be the case. At any rate, if you are interested in including them in
log4j, just ask me.
Regards
--
Javier Cámara (jcamara@softwareag.es <ma...@softwareag.es> )
Software Architect, Software AG España, S.A.
Ronda de la Luna, 22; 28760 Tres Cantos (Spain)
+34 91 807 9400, fax +34 91 807 9447
Re: Using log4j Appender classes in java.util.logging
Posted by Ceki Gülcü <ce...@qos.ch>.
Hello Javier,
Thank you for writing to us.
The type of bridging effort you describe get quite complicated fairly
quickly. In this particular case, that is Handler->Appender type bridging,
I fail to see the long term added value to our users. However, I'd like to
encourage you to set up a separate project to see if there is an interest
for your effort.
Best regards,
At 06:22 PM 2/24/2005, Camara Melgosa, Javier wrote:
>Hi. I have just created a java.util.logging.Handler class allowing to
>plug-in regular Appender classes in the java.util.logging system, so that
>applications using this system can benefit from the large number of
>Appenders out there. They are plugged in just via standard configuration
>java.util.logging files (plus the regular log4j configuration), without
>changing the code. In this way we hope to be able to use the standard
>java.util.logging facilities, while not risking to lose the superior
>abilities of log4j and related tools.
>
>This feature does not help in enhancing the java.util.logging
>configuration, but I have also created other classes for this, which allow
>to create more than one instance of a java.util.Handler while having each
>one of them using different configuration parameters taken from the
>standard configuration files. It should work with most standard Handlers,
>including the one I created to plug in Appenders, so allowing for more
>than one Appender to be plugged in.
>
>I actually am surprised of not having found these features out there.
>Maybe I did not search hard enough? Am I wrong, and these very same things
>have been already solved long time ago by you or others?
>
>If not, I thought you could be interested on them, although since they
>actually promote the usage of java.util.logging and hide log4j behind,
>this may not be the case. At any rate, if you are interested in including
>them in log4j, just ask me.
>
>Regards
>--
>Javier Cámara (<ma...@softwareag.es>jcamara@softwareag.es)
>Software Architect, Software AG España, S.A.
>Ronda de la Luna, 22; 28760 Tres Cantos (Spain)
>+34 91 807 9400, fax +34 91 807 9447
>
>
--
Ceki Gülcü
The complete log4j manual: http://www.qos.ch/log4j/
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org