The Artima Developer Community
Sponsored Link

Java Buzz Forum
SLF4J: Now you can do logging in Java... oh wait!

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
dion

Posts: 5028
Nickname: dion
Registered: Feb, 2003

Dion Almaer is the Editor-in-Chief for TheServerSide.com, and is an enterprise Java evangelist
SLF4J: Now you can do logging in Java... oh wait! Posted: Aug 27, 2007 9:32 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by dion.
Original Post: SLF4J: Now you can do logging in Java... oh wait!
Feed Title: techno.blog(Dion)
Feed URL: http://feeds.feedburner.com/dion
Feed Description: blogging about life the universe and everything tech
Latest Java Buzz Posts
Latest Java Buzz Posts by dion
Latest Posts From techno.blog(Dion)

Advertisement

Howard is saying so long, commons-logging, hello SLF4J.

I had to giggle a little bit here. When commons-logging came along to abstract your logger which abstracts your println (I know.... you CAN write an appender that sends you SMS messages and launches rockets) I thought "wow".

Only the J2EE community would architect twelve levels of abstraction to handle a filtered logging system.

After years of use we realise that the last level of abstraction doesn't do anything for you... but instead of just ignoring it, we have a new one!

The non-Apache follow on to commons-logging is SLF4J. It does things right: Logger, not Log. Better yet, Logger is an interface (it's a class in Log4J) which makes my EasyMock-addled brain quite happy. Finally, SLF4J takes a very simple, very sane approach: you combine the API JAR with one of several implementation JARs. That's it ... no class loader magic, no dynamic binding. This is an ideal solution for those same 99.99999% of applications out there.

Maybe someone could write an abstraction layer on top of commoons-logging and SLF4J.... you know, so you could switch between then without changing the interface.

Read: SLF4J: Now you can do logging in Java... oh wait!

Topic: links for 2007-08-19 from PeopleOverProcess.com Previous Topic   Next Topic Topic: Swixml is used in GlassFish's openInstaller Framework

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use