Package io.micronaut.logging.impl
Class LogbackLoggingSystem
- java.lang.Object
-
- io.micronaut.logging.impl.LogbackLoggingSystem
-
- All Implemented Interfaces:
LoggingSystem
@Singleton @Requires(classes=ch.qos.logback.classic.LoggerContext.class) @Internal public final class LogbackLoggingSystem extends java.lang.Object implements LoggingSystem
An implementation ofLoggingSystem
that works with logback.- Since:
- 1.3.0
-
-
Constructor Summary
Constructors Constructor Description LogbackLoggingSystem(java.lang.String logbackXmlLocation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
refresh()
Refreshes Logging System with the goal of cleaning its internal caches.void
setLogLevel(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: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
-
refresh
public void refresh()
Description copied from interface:LoggingSystem
Refreshes Logging System with the goal of cleaning its internal caches.- Specified by:
refresh
in interfaceLoggingSystem
-
-