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

MarkerFilter causes Markers to be incorrectly created. SLF4J Markers cause ClassCastException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0-alpha2
    • 2.0-beta1
    • API
    • None

    Description

      MarkerFilter calls MarkerManager.getMarker(). This will cause the Marker to be created when the configuration is processed and generally won't allow the application to create the Markers.

      MarkerWrapper's instanceOf method tries to cast a Marker to a MarkerWrapper even when the Marker is not a MarkerWrapper, causing a ClassCastException.

      Attachments

        Activity

          People

            rgoers Ralph Goers
            rgoers Ralph Goers
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: