Code Monkeyism

Programming is hard by Stephan Schmidt

Open Comment to Dion on SLF4J

Dion wrote about SLF4J and how only the Java community can make such a fuzz about logging. His captcha is broken, I can’t comment there so here is my thought on the issue:

From my impression into Rails and Erlang land, others have not reached the problem of proper log configuration, deployment and the need for sophisticated frameworks (But I’d like to learn if I’m wrong, and the issue is not only configurability but pluggin incompatible frameworsk with different loggers into one application).

The problem with commons logging and everything else comes from the fact that Sun implemented logging themselves instead of just going with everyone else by adapting Log4j. They didn’t make the error with EJB3 again, instead got Hibernate on board and did it the way everyone else does it. Log4J in the JDK would have killed all other attempts several years ago.

(That said, SLF4J and Logback are better than Log4j and commons)

About the author: Stephan Schmidt is currently a team manager at ImmobilienScout24 in Berlin. Stephan has been working as a head of development and CTO. He has used a lot of different technologies in the last 20 years including Java, Rails and Python. Stephans main field of interest is maintainablity and productivity in software development. Want to know more? All views are only his own.

If you did like this article but you don't want to subscribe to new articles with your reader, you can follow me on Twitter or subscribe to new posts with your email:

Leave a Reply