Class CustomLog4j2BackendFactory
java.lang.Object
com.google.common.flogger.backend.system.BackendFactory
nl.pim16aap2.util.logging.floggerbackend.CustomLog4j2BackendFactory
public final class CustomLog4j2BackendFactory
extends com.google.common.flogger.backend.system.BackendFactory
BackendFactory for log4j2.
When using Flogger's DefaultPlatform, this
factory will automatically be used if it is included on the classpath and no other implementation of
BackendFactory (other than the default implementation) is. To specify it more explicitly or to work around an
issue where multiple BackendFactory implementations are on the classpath, you can set the
flogger.backend_factory system property:
flogger.backend_factory=com.google.common.flogger.backend.log4j2.Log4j2BackendFactory
Note: Any changes in this code should, as far as possible, be reflected in the equivalently named log4j implementation. If the behaviour of this class starts to deviate from that of the log4j backend in any significant way, this difference should be called out clearly in the documentation.
-
Constructor Summary
Constructors -
Method Summary