Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 596 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 596 Bytes

Appenders (internal) Logging

This project provides a very simple implementation of "binding-less" logger.

Log4j2 StatusLogger is used by default, but any other logging implementation can be set instead.

Usage

InternalLogging.getLogger().info("Hello, World"); // Will use Log4j2 StatusLogger if Log4j2 jars are available 

or

InternalLogging.setLogger(new Logger() {
        @Override
        public void warn(String messageFormat, Object... parameters) {
            // Your logging implementation
        }
}; 

InternalLogging.getLogger().warn("Hello, World");