Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-584

Let the LogbackMDCAdapter exhibit a full copy on write semantics

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major Major
    • None
    • 0.9.9, 0.9.10
    • logback-classic
    • None

    Description

      Hi,

      I have implemented an async appender and i was very happy seeing that most of the methods of the MDCAdapter exhibits copy on write semantics. This is very handy in this scenerio, it helps to transfer the MDC map onto the background thread. But i have noticed, that the clear and setContextMap methods are breaking this semantics. Is there any chance in the next release to change the implementation of the clear and setContextMap to conform with cow?

      Thanks very much.

      P.S.: We are waiting for legal approval to contribute our appender implementation back to the community.

      Best Regards,
      Zoltan Szel

      Attachments

        Activity

          People

            logback-dev Logback dev list
            zoliszel Szel Zoltan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: