mirror of
https://github.com/sparrowwallet/drongo.git
synced 2024-12-24 17:16:45 +00:00
add ability to remove root logging appender
This commit is contained in:
parent
f183146d13
commit
7c34ec7c3b
1 changed files with 5 additions and 0 deletions
|
@ -83,6 +83,11 @@ public class Drongo {
|
|||
root.setLevel(ch.qos.logback.classic.Level.toLevel(level.toString()));
|
||||
}
|
||||
|
||||
public static void removeRootLogAppender(String appenderName) {
|
||||
ch.qos.logback.classic.Logger root = (ch.qos.logback.classic.Logger)LoggerFactory.getLogger(org.slf4j.Logger.ROOT_LOGGER_NAME);
|
||||
root.detachAppender(appenderName);
|
||||
}
|
||||
|
||||
public static Provider getProvider() {
|
||||
return new BouncyCastleProvider();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue