mirror of
https://github.com/unmojang/authlib-injector.git
synced 2025-09-29 14:20:55 -04:00
prevent logging output being redirected
This commit is contained in:
parent
9b2075775e
commit
14741ad521
@ -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…
x
Reference in New Issue
Block a user