Package ch.raffael.meldioc.logging.spi
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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ch.raffael.meldioc.logging.spi.Adapter
Adapter.Default, Adapter.InitFlag, Adapter.InitLogger
-
-
Constructor Summary
Constructors Constructor Description Log4J2Adapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<Adapter.InitFlag>initialize(Adapter.InitLogger initLogger)Perform the init.voidshutdown()Shutdown the logging system.-
Methods inherited from class ch.raffael.meldioc.logging.spi.Adapter.Default
backendClassName
-
-
-
-
Method Detail
-
initialize
public java.util.Set<Adapter.InitFlag> initialize(Adapter.InitLogger initLogger)
Description copied from interface:AdapterPerform the init.- Parameters:
initLogger- A logger to log warnings to.- Returns:
- Hints on how to proceed.
-
shutdown
public void shutdown()
Description copied from interface:AdapterShutdown the logging system.
-
-