-- Piotr > > - Don > > > On Jan 7, 2006, at 8:56 AM, Piotr Kamiński wrote: > >> Hi, >> >> I've used only Log4J. After reading some articles which compared both >> libraries I chose Log4J. In my opinion it gives me more options, more >> appenders, more formatters and is still under active development. >> Logging built into JVM is not developed as intensively as Log4J. As a >> bonus I have Chansaw - the log viewer. >> >> My application use many other libraries (e.g. Hibernate), which also >> need logging functionality. In most of cases Log4J is used by them, >> not Logging API. It also influenced my decision. >> >> After Java 1.4 had been released with new Logging API there were thin >> wrapper developed (http://jakarta.apache.org/commons/logging). If >> someone wishes to switch between different logging libraries, he can >> now. I don't use it. >> >> Log4J was 'on the market' before Logging API, it is more mature, I >> think. It is the shame that Sun chose something else, not Log4J, for >> its logging framework. That's my opinion. >> >> Now a few words about adding new jar to OpenMap. If you treat OpenMap >> as a self-sufficient application then adding log4j is not very >> appropriate. In my case OpenMap.jar is one 20 other 3rd parties jars >> not including our own libraries. Having non-standard logging in >> OpenMap is more problematic to me than having one jar file more. >> >> So I think that 4 implementations of Debug class would satisfy everyone: >> 1 - the old one - for usage in applets >> 2 - using Java 1.4 Logging API - no additional jars required >> 3 - using Log4J - for Log4J fans ;-) >> 4 - using Jakarta Logging wrapper - for persons wishing to switch >> between different logging implementations >> >> For me having 1st and 3rd option is enough. >> >> -- >> Piotr >> >> >> Don Dietrick napisał(a): >> >>> Hi Geir, >>> First, I agree that Debug needs to be replaced, and 4.7 would be an >>> ideal time to do it. The main reason Debug is still around is >>> because I haven't figured out whether to use log4j or java's >>> logging mechanism, and/or using Piotr's suggestion of making Debug >>> a wrapper for either. >>> Is there a reason to use log4j over the logging mechanism built >>> into Java? I've used both but not enough to choose one over the >>> other based on some capability one has over the other. I can see a >>> benefit to not having to deal with yet another jar file, however, >>> which makes the java logger more attractive to me. >>> Is one faster than the other, or does one take up fewer resources? >>> I've read several articles written that compares the two, but I >>> still can find or remember an obvious answer. >>> - Don >>> On Jan 6, 2006, at 2:05 AM, Geir Øvsttun (AS/ETO) wrote: >>> >>>> Hi all, >>>> >>>> I have a point on the OpenMap wishlist (4.7 ?) : >>>> >>>> A modernized revamped logging component in OpenMap >>>> >>>> My proposal is Log4J (THE open source logging component) >>>> http://logging.apache.org/log4j/docs/ >>>> (which I guess most of us are using anyway in the rest of our code) >>>> >>>> It combines extreme ease of use with extreme logging flexilibility >>>> >>>> Comments anyone ? >>>> >>>> Geir >>> >>> -- >>> [To unsubscribe to this list send an email to "majdart_at_bbn.com" >>> with the following text in the BODY of the message "unsubscribe >>> openmap-users"] -- [To unsubscribe to this list send an email to "majdart_at_bbn.com" with the following text in the BODY of the message "unsubscribe openmap-users"]Received on Mon Jan 09 2006 - 20:08:29 EST
This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:07 EDT