public interface LoggingSystem extends LoggingSystem
| Modifier and Type | Method and Description |
|---|---|
LoggerConfiguration |
getLogger(@NotBlank String name)
Returns a
LoggerConfiguration for the logger found by name (or created if not found). |
Collection<LoggerConfiguration> |
getLoggers()
Returns all existing loggers.
|
void |
setLogLevel(@NotBlank String name,
@NotNull LogLevel level)
Deprecated.
|
default void |
setLogLevel(@NotBlank String name,
LogLevel level)
Set the log level for the logger found by name (or created if not found).
|
@Nonnull Collection<LoggerConfiguration> getLoggers()
Collection of LoggerConfiguration instances for all existing loggers@Nonnull LoggerConfiguration getLogger(@NotBlank @NotBlank String name)
LoggerConfiguration for the logger found by name (or created if not found).name - the logger name@Deprecated void setLogLevel(@NotBlank @NotBlank String name, @NotNull @NotNull LogLevel level)
LoggingSystem.setLogLevel(String, io.micronaut.logging.LogLevel) insteadname - the logger namelevel - the log level to set on the named loggerdefault void setLogLevel(@NotBlank @NotBlank String name, LogLevel level)
LoggingSystemsetLogLevel in interface LoggingSystemname - the logger namelevel - the log level to set on the named logger