Package io.micronaut.logging
Interface LoggingSystem
- All Known Implementing Classes:
Log4jLoggingSystem,LogbackLoggingSystem
Abstraction for a logging system.
- Since:
- 1.3.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidrefresh()Refreshes Logging System with the goal of cleaning its internal caches.voidsetLogLevel(@NotBlank String name, @NotNull LogLevel level) Set the log level for the logger found by name (or created if not found).
-
Method Details
-
setLogLevel
Set the log level for the logger found by name (or created if not found).- Parameters:
name- the logger namelevel- the log level to set on the named logger
-
refresh
default void refresh()Refreshes Logging System with the goal of cleaning its internal caches.
-