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

wrong Output for %contextName in SimpleSocketServer with PatternLayout

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 0.9.15
    • logback-classic
    • None

    Description

      Hello logback team,

      I found some unexpected behavior when trying to print out the log context name in the log message created by the SimpleSocketServer.
      %contextName in a PatternLayout of the SimpleSocketServer always creates "default" and not the context name submitted from the client.
      On the other side, context based discrimination works fine on the side of the SocketServer. Thus the context name seems to be correctly handed over to the SocketServer.

      Could you please have a look at this.

      Thank you in advance,
      Rick

      Attachments

        Activity

          People

            logback-dev Logback dev list
            rick Rick Janda
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: