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

Modifying DynamicThresholdFilter (TurboFilter) programatically at runtime

    XMLWordPrintable

Details

    Description

      We are using logback with DynamicThreshholdFilter definition as given below

      <turboFilter class="ch.qos.logback.classic.turbo.DynamicThresholdFilter">
      <Key>USER_MDC_KEY</Key>
      <DefaultThreshold>DEBUG</DefaultThreshold>
      <MDCValueLevelPair>
      <value>USER1</value>
      <level>DEBUG</level>
      </MDCValueLevelPair>
      </turboFilter>
      There seems to be no way to programatically modify the setting of MDCValueLevelPair. For example, modifying the level of USER1 to INFO. Is it possible to add this. In case it is possible then please point me the direction.

      Attachments

        Activity

          People

            logback-dev Logback dev list
            kaushal Kaushal Kumar
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: