public class Log4jLoggingAdapter extends Object implements LoggingAdapter
Constructor and Description |
---|
Log4jLoggingAdapter() |
Modifier and Type | Method and Description |
---|---|
Loglevel |
getCurrentLoglevel()
Returns the current loglevel by reading the loglevel of the root logger.
|
void |
setLoglevel(Loglevel loglevel)
Sets the loglevel to the given loglevel
by changing the level of the log4j root logger.
|
public Loglevel getCurrentLoglevel()
getCurrentLoglevel
in interface LoggingAdapter
public void setLoglevel(Loglevel loglevel)
setLoglevel
in interface LoggingAdapter
loglevel
- the loglevel to set, not null.Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.