mirror of
https://github.com/sparrowwallet/drongo.git
synced 2024-11-02 18:26:43 +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