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 Improvement
    • Status: Closed
    • Priority: Major 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

        Issue Links

          Activity

          james strachan created issue -
          Hide
          Claus Ibsen added a comment -

          I think this requires a fair amount of work to do for all camel components etc. Lets do this when we better time.
          And since logging is a delicate matter we should probably start a thread about it and write in the release notes we consider this change in the future.

          Show
          Claus Ibsen added a comment - I think this requires a fair amount of work to do for all camel components etc. Lets do this when we better time. And since logging is a delicate matter we should probably start a thread about it and write in the release notes we consider this change in the future.
          Claus Ibsen made changes -
          Field Original Value New Value
          Fix Version/s Future [ 11977 ]
          Fix Version/s 2.2.0 [ 12170 ]
          Claus Ibsen made changes -
          Fix Version/s Future [ 11977 ]
          Fix Version/s 3.0.0 [ 12339 ]
          Jeff Turner made changes -
          Project Import Sat Nov 27 00:14:50 EST 2010 [ 1290834890113 ]
          Hide
          Claus Ibsen added a comment -

          We have switched logger

          Show
          Claus Ibsen added a comment - We have switched logger
          Claus Ibsen made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Assignee Claus Ibsen [ davsclaus ]
          Fix Version/s 2.7.0 [ 12316021 ]
          Fix Version/s 3.0.0 [ 12315691 ]
          Resolution Fixed [ 1 ]
          Christian Müller made changes -
          Link This issue relates to CAMEL-3759 [ CAMEL-3759 ]
          Daniel Kulp made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Resolved Resolved
          439d 16h 4m 1 Claus Ibsen 08/Feb/11 06:19
          Resolved Resolved Closed Closed
          259d 5h 16m 1 Daniel Kulp 25/Oct/11 12:35

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development