nopalmo-java/src/pkg/deepCurse/simpleLoggingGarbage/core/Log.java
deepCurse 573443e4b4
mass code dump
Signed-off-by: deepCurse <leverplays@gmail.com>
2021-12-05 17:41:07 -04:00

41 lines
998 B
Java

package pkg.deepCurse.simpleLoggingGarbage.core;
import pkg.deepCurse.nopalmo.core.Boot;
/**
* this class exists for the sole reason of im lazy, as far as i know, this is
* really bad practice and i will replace it at some point, or at least upgrade
* it, who knows really
*
* @author deepCurse
*/
public class Log {
public static int loggerLevel = 0;
public static boolean bootEnabled = true;
public static boolean guildCommandManagerEnabled = true;
public static void boot(String text) {
boot(text, 0);
}
public static void boot(String text, int level) {
if (bootEnabled && level <= loggerLevel) {
System.out.println(Boot.class + ": " + text);
}
}
public static void crash(Exception e) {
}
public static void guildCommandManager(String text) {
guildCommandManager(text);
}
public static void guildCommandManager(String text, int level) {
if (guildCommandManagerEnabled && level <= loggerLevel) {
System.out.println(Boot.class + ": " + text);
}
}
}