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 Object
implements LoggingSystem
An implementation of
LoggingSystem
that works with Log4j.- Since:
- 2.2.0
- Author:
- Matteo Vaccari
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setLogLevel
(String name, LogLevel level) Set the log level for the logger found by name (or created if not found).Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.logging.LoggingSystem
refresh
-
Constructor Details
-
Log4jLoggingSystem
public Log4jLoggingSystem()
-
-
Method Details
-
setLogLevel
Description copied from interface:LoggingSystem
Set the log level for the logger found by name (or created if not found).- Specified by:
setLogLevel
in interfaceLoggingSystem
- Parameters:
name
- the logger namelevel
- the log level to set on the named logger
-