@Singleton @Requires(beans=LoggersEndpoint.class) @Requires(classes=org.apache.logging.log4j.core.LoggerContext.class) @Replaces(value=Log4jLoggingSystem.class) public class Log4jLoggingSystem extends Object implements ManagedLoggingSystem, LoggingSystem
ManagedLoggingSystem that works with logback.| Constructor and Description | 
|---|
| Log4jLoggingSystem() | 
| Modifier and Type | Method and Description | 
|---|---|
| LoggerConfiguration | getLogger(String name)Returns a  LoggerConfigurationfor the logger found by name (or created if not found). | 
| Collection<LoggerConfiguration> | getLoggers()Returns all existing loggers. | 
| void | setLogLevel(String name,
           LogLevel level)Set the log level for the logger found by name (or created if not found). | 
@NonNull public Collection<LoggerConfiguration> getLoggers()
ManagedLoggingSystemgetLoggers in interface ManagedLoggingSystemCollection of LoggerConfiguration instances for all existing loggers@NonNull public LoggerConfiguration getLogger(String name)
ManagedLoggingSystemLoggerConfiguration for the logger found by name (or created if not found).getLogger in interface ManagedLoggingSystemname - the logger namepublic void setLogLevel(String name, LogLevel level)
LoggingSystemsetLogLevel in interface LoggingSystemname - the logger namelevel - the log level to set on the named logger