Re: logging, Jakarta Commons Logging library and SLF4J



apm35@xxxxxxxxxxxxxxxxxx wrote:
What do people use to do their logging? I am currently using the
Jakarta Commons Logging library (JCL).

AIUI, the commons logging lib is a glue that lets log4j and java.util.logging live comfortably side by side.

java.util.logging, as you can see by the package name, is part of the standard API.

log4j I'm more familiar with, and I like it a lot. However, I'm only a programmer. The strength of logging packages is known only in operations.

I've reviewed the commons logging docs before, but I'm no expert. OTOH, the docs seemed pretty complete to me.

In a given project I usually pick one or the other, log4j or java.util.logging, and don't use commons logging unless, as your source on blogspam.com noted, I predict that both packages will be forced to coexist in the field.

--
Lew
.



Relevant Pages

  • Re: Spring and Log4j
    ... >> log4j and now 1.2 uses commons logging. ... > Commons logging uses a log4j config if it finds one. ... > log4j.category.org.springframework=DEBUG, console2, apacheOrg ...
    (comp.lang.java.programmer)
  • Re: Spring and Log4j
    ... > log4j and now 1.2 uses commons logging. ... Commons logging uses a log4j config if it finds one. ... log4j.category.org.springframework=DEBUG, console2, apacheOrg ...
    (comp.lang.java.programmer)
  • Re: logging, Jakarta Commons Logging library and SLF4J
    ... Jakarta Commons Logging library. ... the commons logging lib is a glue that lets log4j and java.util.logging ... I've reviewed the commons logging docs before, ...
    (comp.lang.java.help)
  • Re: c# Coding guidelines & conventions
    ... > Suggesting the direct use of Log4j but talking about this being ... > reviewed in the long term is foolish when the Commons Logging project ... Commons Logging lacks MDCs and NDCs, ...
    (microsoft.public.dotnet.languages.csharp)