Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-1015

Add a way to route messages based on the %marker in Layout for RoutingAppender

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: None
    • Component/s: Appenders
    • Labels:
      None

      Description

      Hi,

      It seems there's no way to route messages based on the Marker in the RoutingAppender. The "%marker" is not part of the Layout. When using SLF4J, since it's a core feature of the facade, this would help greatly if it was possible to route messages based on the Marker.

      Main StackOverFlow question (answered) : http://stackoverflow.com/questions/30111754/log4j2-is-there-a-way-to-route-logs-based-on-marker-with-the-routingappender

      Workaround StackOverFlow question (answered) : http://stackoverflow.com/questions/30247323/how-to-create-custom-rewritepolicy-in-log4j2

      Thank you

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              MarcotteDan Daniel Marcotte
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: