mirror of
https://github.com/Team4388/2022NoWayHome.git
synced 2026-06-09 08:48:07 -06:00
Switch to disable logging with the off level
This commit is contained in:
@@ -29,14 +29,12 @@ import org.fusesource.jansi.AnsiConsole;
|
||||
import org.fusesource.jansi.AnsiPrintStream;
|
||||
|
||||
public class AnsiLogging {
|
||||
public static final boolean ENABLED = true;
|
||||
public static final Level LEVEL = Level.ALL;
|
||||
private static final AnsiPrintStream ANSI_CONSOLE_STREAM = AnsiConsole.err();
|
||||
private static final Level LEVEL = Level.ALL;
|
||||
|
||||
public static Handler halLoggerHandler = new ConsoleHandler();
|
||||
|
||||
public static void systemInstall() {
|
||||
if (!ENABLED) return;
|
||||
if (LEVEL.equals(Level.OFF)) return;
|
||||
try {
|
||||
// Configure java.util.logging.Logger to output additional colored information.
|
||||
LogManager.getLogManager().updateConfiguration(key -> (o, n) -> {
|
||||
|
||||
Reference in New Issue
Block a user