Class Log4J2Adapter

java.lang.Object
ch.raffael.meldioc.logging.spi.Adapter.Default
ch.raffael.meldioc.logging.spi.Log4J2Adapter
All Implemented Interfaces:
Adapter

public class Log4J2Adapter extends Adapter.Default
Logging initializer for Log4j 2. It checks that the JUL → Log4J bridge is configured. If it isn't, it prints a warning and instructions on how to configure this correctly. If it is, it makes sure the JUL → SLF4J bridge isn't installed.
  • Constructor Details

    • Log4J2Adapter

      public Log4J2Adapter()
  • Method Details

    • initialize

      public Set<Adapter.InitFlag> initialize(Adapter.InitLogger initLogger)
      Description copied from interface: Adapter
      Perform the init.
      Parameters:
      initLogger - A logger to log warnings to.
      Returns:
      Hints on how to proceed.
    • shutdown

      public void shutdown()
      Description copied from interface: Adapter
      Shutdown the logging system.