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

Provide default value for MDC values in pattern layout

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 1.0.12
    • None
    • logback-core
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: