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

log4j-slf4j-impl 2.6 is warning

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.6
    • 2.6.1
    • SLF4J Bridge
    • None
    • Log4j 2.6 slf4j 1.7.13-21

    Description

      when use log4j 2 2.6 ,
      some class like private static final Logger log = LoggerFactory.getLogger(RestDispatcherServlet .class);
      has warning :
      WARN The Logger com.gentlesoft.framework.RestDispatcherServlet was created with the message factory org.apache.logging.log4j.spi.MessageFactory2Adapter@31bd1cd3 and is now requested with a null message factory (defaults to org.apache.logging.log4j.message.ParameterizedMessageFactory), which may create log events with unexpected formatting.

      but some class no warning.

      log4j 2.5 no this problem.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              yuedaxia yuedaxia
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: