Fix update again

This commit is contained in:
huangyuhui
2018-03-04 23:29:27 +08:00
parent 9ba6cddde7
commit affe36a568
6 changed files with 86 additions and 36 deletions

View File

@@ -35,6 +35,9 @@ public final class Logging {
static {
LOG = Logger.getLogger("HMCL");
}
public static void start() {
LOG.setLevel(Level.FINER);
LOG.setUseParentHandlers(false);
@@ -63,6 +66,11 @@ public final class Logging {
LOG.addHandler(streamHandler);
}
public static void stop() {
for (Handler handler : LOG.getHandlers())
LOG.removeHandler(handler);
}
public static String getLogs() {
return OUTPUT_STREAM.toString();
}