mirror of
https://github.com/yushijinhun/authlib-injector.git
synced 2024-11-15 06:11:09 +01:00
prevent logging output being redirected
This commit is contained in:
parent
9b2075775e
commit
14741ad521
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue