prevent logging output being redirected

This commit is contained in:
yushijinhun 2020-08-22 22:40:40 +08:00
parent 9b2075775e
commit 14741ad521
No known key found for this signature in database
GPG key ID: 5BC167F73EA558E4

View file

@ -16,6 +16,7 @@
*/
package moe.yushi.authlibinjector.util;
import java.io.PrintStream;
import java.io.PrintWriter;
import java.io.StringWriter;
import moe.yushi.authlibinjector.Config;
@ -23,6 +24,8 @@ import moe.yushi.authlibinjector.Config;
public final class Logging {
private Logging() {}
private static final PrintStream out = System.err;
public static enum Level {
DEBUG, INFO, WARNING, ERROR;
}
@ -44,6 +47,6 @@ public final class Logging {
pw.close();
log += sw.toString();
}
System.err.println(log);
out.println(log);
}
}