public abstract class LogControl extends Object
An instance of LogControl is able to control the log levels of loggers for log libraries such as Log4j, yet can be created in code designed to support multiple back end loggers behind SLF4J.
| Modifier and Type | Class and Description |
|---|---|
static class |
LogControl.LogLevel
Enumeration of log levels.
|
| Constructor and Description |
|---|
LogControl() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
setLevel(String log,
LogControl.LogLevel level)
Sets a log level for a class/package.
|
boolean |
setLogLevel(String log,
LogControl.LogLevel level)
Sets a log level for a class/package.
|
public final boolean setLogLevel(String log, LogControl.LogLevel level)
log - log to setlevel - level to setprotected abstract boolean setLevel(String log, LogControl.LogLevel level) throws Exception
setLogLevel(String, LogLevel) and ignored.log - log to setlevel - level to setException - any problem loading/updating the logCopyright © 2008–2025 Apache Software Foundation. All rights reserved.