Chris Holmes a écrit :
> It seems to meet Justin's criteria of using a standard library, it'll
> work with sfl4j/jetty ;) (for Andrea), and Martin likes it a lot better
> than commons logging.

SLF4J has more capabilities than Commons-Logging for sure. But the most standard
(while maybe not the most used) API stay Java Logging, since it is bundled in
core Java. It is also the less troublesome (because of its priviligied position
in core Java, compared to other framework) for those who are willing to accept
its limitations, especially if we want to use GeoServer inside Glassfish.
Commons-Logging seems to be slowly dying because of ClassLoader issues
(Hibernate is moving from Commons-Logging to SLF4J because of that, and a
similar move in Jetty (from version 5 to version 6) trigged this logging 
thread).

I admit that Java Logging has less capabilities than Log4J, which is why it is
important to allow peoples to use other implementations. In order to lets people
choose whatever implementation they want, we need to agree on an API. I suggest
Java Logging API (note: API, not necessarly implementation) because it is core 
Java.

Writting our own java.util.logging.Logger facade should not be long. I expect
that by the time we get the PMC okay, it will be done the day after. Doing that
in GeoTools allows us to redirect to Log4J or SLF4J, as we wish even if the
container tries to redirect us elsewhere.

As a bonus (not sure if it is useful), we get for free the ability to redirect
different loggers to different Logging framework :) (e.g. "org.geotools.render"
to Log4J, "org.geotools.filter" to Java logging...)

        Martin

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to