Essentially I'm looking for something with the same behavior, configuration, logging levels as log4j, but with some of the missing functionality (e.g. formatted logging — see here and here for related SO threads.)
+3
A:
since a lot of frameworks already support slf4j you will only have to setup your logging once with slf4j.
i use slf4j and it is super-easy to read + use.
Andreas Petersson
2009-06-09 09:47:31
+12
A:
I'm inclined toward SLF4J.
- allows parameterized logging (formatting)
- allows consolidation of other frameworks (great for apps using many libraries, each logging to a different framework)
log5j is good, but does not have near as much market penetration.
Chadwick
2009-06-09 09:49:40
I'm inclined to agree, especially as there is a slf4j implementation to replace commons-logging.
Gareth Davis
2009-06-09 09:52:34
+3
A:
I'd also suggest SLF4J, ideally with Logback. Take a look at What’s Up with Logging in Java? and Find a way in the java logging frameworks scene., too.
Huxi
2009-06-09 14:22:06