Uploaded image for project: 'SLF4J'
  1. SLF4J
  2. SLF4J-473

push/pop methods for MDC?

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • None
    • None

    Description

      Would it be a good idea to have push/pop methods for getting a bunch of values into the MDC?

      Currently we have to call putClosable a bunch of times in a try with resources declaration statement. Would it be a good idea to add push/pop methods to more easily set and remove multiple values? lwjgl has something like this. They use it to manage an actual stack of memory. And I guess the methods you typically use there are push and close.. but it's the same idea.

      Attachments

        Activity

          People

            slf4j-dev SLF4J developers list
            sixcorners Stephen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: