Class Log4J2Logger

    • Field Detail

      • CONFIG

        public static final Level CONFIG
        Define a Log4j Level mapping to java util logging Level.CONFIG (using StandardLevel value 450).

        Note: StandardLevel.getStandardLevel(int) will map to StandardLevel.INFO if using a log4j adapter (StandardLevel value 550 between Level.INFO and Level.DEBUG).

      • FINEST

        public static final Level FINEST
        Define a Log4j Level mapping to java util logging Level.FINEST Level (using StandardLevel value 700 which is higher the DEBUG).

        Note: StandardLevel.getStandardLevel(int) will map to StandardLevel.DEBUG if using a log4j adapter.

    • Constructor Detail

      • Log4J2Logger

        public Log4J2Logger​(String name,
                            Logger logger)
        Creates a new logger adapter mapping from Log4J to java util logging.
        Parameters:
        name - The logger name.
        logger - The result of Logger.getLogger(name).