Class Logger
java.lang.Object
com.xpdustry.simple_blacklist.util.Logger
Log messages to console with topics
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Object[]static booleanForce debug log level of all logger instances, evenLog.LogLevelis not todebug.static Stringprotected static Objectprotected static booleanWill use slf4j when slf4md plugin is presentprotected static String[]final Stringstatic String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancannotLog(arc.util.Log.LogLevel level) Returntrueif the log level is not enough to log the message.voidvoidvoidvoidvoidvoidvoidvoidvoidstatic voidSets the main topic using the mod class.static voidSets the main topicstatic voidinit(mindustry.mod.Mod mod) Sets the main topic using the mod.voidvoidvoidvoidnone()Log an empty "info" linevoidvoid
-
Field Details
-
empty
-
tagsColors
-
slf4mdPresent
protected static boolean slf4mdPresentWill use slf4j when slf4md plugin is present -
slf4jLogger
-
mainTopic
-
topicFormat
-
forceDebug
public static boolean forceDebugForce debug log level of all logger instances, evenLog.LogLevelis not todebug.
Note that if enabled,Logwill be always used. -
topic
-
-
Constructor Details
-
Logger
public Logger()Will only use themainTopic. -
Logger
-
Logger
-
-
Method Details
-
init
public static void init(mindustry.mod.Mod mod) Sets the main topic using the mod. -
init
Sets the main topic using the mod class. -
init
Sets the main topic -
cannotLog
public boolean cannotLog(arc.util.Log.LogLevel level) Returntrueif the log level is not enough to log the message.
Can be used like that:if (cannotLog(level)) return; -
log
-
log
-
log
-
debug
-
debug
-
info
-
info
-
warn
-
warn
-
err
-
err
-
err
-
err
-
err
-
none
public void none()Log an empty "info" line
-