Package io.micronaut.logging.impl
Class Log4jLoggingSystem
- java.lang.Object
-
- io.micronaut.logging.impl.Log4jLoggingSystem
-
- All Implemented Interfaces:
LoggingSystem
@Singleton @Requires(classes=org.apache.logging.log4j.core.config.Configurator.class) @Internal public class Log4jLoggingSystem extends java.lang.Object implements LoggingSystem
An implementation ofLoggingSystemthat works with Log4j.- Since:
- 2.2.0
-
-
Constructor Summary
Constructors Constructor Description Log4jLoggingSystem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetLogLevel(java.lang.String name, LogLevel level)Set the log level for the logger found by name (or created if not found).
-
-
-
Method Detail
-
setLogLevel
public void setLogLevel(java.lang.String name, LogLevel level)Description copied from interface:LoggingSystemSet the log level for the logger found by name (or created if not found).- Specified by:
setLogLevelin interfaceLoggingSystem- Parameters:
name- the logger namelevel- the log level to set on the named logger
-
-