@Singleton @Requires(beans=LoggersEndpoint.class) @Requires(classes=ch.qos.logback.classic.LoggerContext.class) @Replaces(value=LogbackLoggingSystem.class) public class LogbackLoggingSystem extends Object implements LoggingSystem
LoggingSystem
that works with logback.Constructor and Description |
---|
LogbackLoggingSystem() |
Modifier and Type | Method and Description |
---|---|
LoggerConfiguration |
getLogger(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.
|
void |
setLogLevel(String name,
LogLevel level)
Set the log level for the logger found by name (or created if not found).
|
public Collection<LoggerConfiguration> getLoggers()
LoggingSystem
Collection
of LoggerConfiguration
instances for all existing loggerspublic LoggerConfiguration getLogger(String name)
LoggingSystem
LoggerConfiguration
for the logger found by name (or created if not found).name
- the logger name@Deprecated public void setLogLevel(@NotBlank @NotBlank String name, @NotNull @NotNull LogLevel level)
LoggingSystem
name
- the logger namelevel
- the log level to set on the named loggerpublic void setLogLevel(String name, LogLevel level)
LoggingSystem
setLogLevel
in interface LoggingSystem
name
- the logger namelevel
- the log level to set on the named logger