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

MDC Content is unavailable

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 1.1.7
    • logback-core

    Description

      I am using Filter to check the logged Messages for log vulnerability.

      After the filter is executed, the Logging is happening in a different thread. Because of which the SessionID and Locale is not getting printed in the second log record shown below.

      DEBUG — [nio-9008-exec-1] com.sample.TestLoggingController .testConsoleLogging : 012354 :: en_US :: test logged text
      WARN — [r-ASYNC_CONSOLE] com.sample.util.security.LogInjectionUtil .logVulnerability : :: CR/LF Characters were detected for Log Injection ::

      Please let me know if any more information is required.

      Attachments

        Activity

          People

            logback-dev Logback dev list
            vigsir@gmail.com Vigneswaran R
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: