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

Log context based log splitting in SocketServer

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: logback-classic
    • Labels:
      None

      Description

      Hello logback team,

      I have the following setup:

      I have several web applications running in the same Tomcat instance.
      The JNDIContextSelector is used to give every deployed webapp its own logging context.
      The logging events are transmitted to a SocketServer.

      On the side of the SocketServer I want to split the logging events based on their log context to different files.

      My idea was to use filters, that filter according the logging context name. But this context name seems to be not reachable from within a filter.

      Would it be possible to add the logging context name as property to the LoggingEvent class that the name is available on the socket server side?
      Or add another means to accomplish the logging event splitting on the SocketServer side?

      This would really simplify our setup as of we would only need one SocketServer for all the Webapps.

      Thanks in advance for your help.
      Kind regards,
      Rick

        Attachments

          Activity

            People

            • Assignee:
              ceki Ceki Gülcü
              Reporter:
              rick Rick Janda
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: