mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-02-01 10:24:30 +07:00
Filled remaining methods and reduced visibility of INSTANCE to private
This commit is contained in:
parent
7f79bbbc9a
commit
28bb1c2ae5
@ -3,7 +3,7 @@ package com.riiablo.logger;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
public class LogManager {
|
||||
public static final LoggerRegistry INSTANCE = new LoggerRegistry();
|
||||
private static final LoggerRegistry INSTANCE = new LoggerRegistry();
|
||||
|
||||
public static final String ROOT = StringUtils.EMPTY;
|
||||
|
||||
@ -15,5 +15,21 @@ public class LogManager {
|
||||
return INSTANCE.getLogger(name);
|
||||
}
|
||||
|
||||
public static Logger getRootLogger() {
|
||||
return INSTANCE.getRoot();
|
||||
}
|
||||
|
||||
public static Level getLevel(String name) {
|
||||
return INSTANCE.getLevel(name);
|
||||
}
|
||||
|
||||
public static void setLevel(String name, Level level) {
|
||||
INSTANCE.setLevel(name, level);
|
||||
}
|
||||
|
||||
public static void setLevel(String name, Level level, boolean force) {
|
||||
INSTANCE.setLevel(name, level, force);
|
||||
}
|
||||
|
||||
private LogManager() {}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user