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

SLF4JLogger attempts to cast an org.slf4j.Marker into an org.apache.logging.log4j.Marker, causing a ClassCastException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.0-beta8
    • None
    • SLF4J Bridge
    • None

    Description

      Every method of SLF4JLogger that uses Markers, attempt to cast org.slf4j.Marker (actually, they are more likely to be org.slf4j.helpers.BasicMarker) into org.apache.logging.log4j.Marker and causes ClassCastException.

      This behaviour has been spotted on isTraceEnabled(Marker), isDebugEnabled(Marker), isWarnEnabled(Marker)... and the method that calls them: trace(Marker, String), debug(Marker, String)...

      Attachments

        Activity

          People

            Unassigned Unassigned
            b0z0 David Bidorff
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: