/** A thin logging system based on the {@link Logger} framework. */
class ThinLogging {
-// private static ThinLogging instance;
-
private SortedMap<String, ThinLogger> loggers = new TreeMap<>();
private NavigableMap<String, Level> levels = new TreeMap<>();
private final LogEntryPublisher publisher;
ThinLogging() {
-// if (instance != null)
-// throw new IllegalStateException("Only one logger finder cann be instantiated");
-// instance = this;
-
executor = Executors.newCachedThreadPool((r) -> {
Thread t = new Thread(r);
t.setDaemon(true);
publisher.subscribe(subscriber);
Runtime.getRuntime().addShutdownHook(new Thread(() -> close(), "Log shutdown"));
+
+ setDefaultLevel(Level.DEBUG);
}
protected void close() {