Class Log4jJava9Support


  • public class Log4jJava9Support
    extends java.lang.Object
    A fix for log4j 1.x problem with MDC and Java 9. In case of Java 9, log4j parses "java.version" system property incorrectly. As a result, it doesn't initialize `MDC.mdc.tlm` and `MDC.mdc.java1`, and any calls to `MDC.put` do not take effect.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void initMDC()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Log4jJava9Support

        public Log4jJava9Support()
    • Method Detail

      • initMDC

        public static void initMDC()