This commit is contained in:
parent
ec59b3d293
commit
c5743dbb64
1 changed files with 2 additions and 4 deletions
|
@ -1,13 +1,11 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2024 Minecon724
|
* Copyright (C) 2025 Minecon724
|
||||||
* Tweaks724 is licensed under the GNU General Public License. See the LICENSE.md file
|
* Tweaks724 is licensed under the GNU General Public License. See the LICENSE.md file
|
||||||
* in the project root for the full license text.
|
* in the project root for the full license text.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package eu.m724.tweaks;
|
package eu.m724.tweaks;
|
||||||
|
|
||||||
import org.fusesource.jansi.Ansi;
|
|
||||||
|
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
|
|
||||||
|
@ -43,7 +41,7 @@ public class DebugLogger {
|
||||||
if (level.intValue() < Level.INFO.intValue()) { // levels below info are never logged even if set for some reason
|
if (level.intValue() < Level.INFO.intValue()) { // levels below info are never logged even if set for some reason
|
||||||
level = Level.INFO;
|
level = Level.INFO;
|
||||||
// colors text gray (cyan is close to gray)
|
// colors text gray (cyan is close to gray)
|
||||||
message = Ansi.ansi().fg(Ansi.Color.CYAN).a(message).reset().toString();
|
message = "\033[36m" + message + "\033[39m";
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.log(level, message);
|
logger.log(level, message);
|
||||||
|
|
Loading…
Reference in a new issue