Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-2229

switch to slf4j / logback by default as we'll get accurate version information in stack traces, plus MDC support (and neater ways to avoid the "if (LOG.isDebugEnabled())" stuff

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7.0
    • Component/s: None
    • Labels:
      None

      Description

      slf4j has an MDC API which would be very handy for selectively turning on tracing of certain kinds of routes

      in addition logback has support for the full jar version info in stack traces (which will help us support camel) so we should probably switch.

      its easy to mix and match slf4j with logback (there's a commons-logging API impl) - plus its easy to bridge both clogging & slf4j to logback (kinda like log4j), so we should probably just switch to slf4j.

      BTW there's a tool that auto-converts source code we should just use...
      http://slf4j.org/migrator.html

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                davsclaus Claus Ibsen
                Reporter:
                jstrachan james strachan
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: