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

Provide default value for MDC values in pattern layout

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.12
    • Component/s: logback-core
    • Labels:
      None

      Description

      I am logging the user principal and not every request has to be authenticated. I set in my pattern layout:
      %X

      {req.userPrincipal:-unauthenticated}

      It did not work of course. Please make default values possible for MDC values just like for properties.

        Attachments

          Activity

            People

            • Assignee:
              ceki Ceki Gülcü
              Reporter:
              michael-o Michael Osipov
            • Votes:
              2 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: