Class Debug
java.lang.Object
io.github.thebusybiscuit.slimefun4.core.debug.Debug
This class is responsible for debug logging.
Server owners can enable testing specific cases and have debug logs for those cases.
Note: We don't have validates in here because we want it to be quick and it's mainly for us internal devs.
- Author:
- WalshyDev
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Get the current test case for this server or null if disabledstatic void
Log a message if theTestCase
is currently enabled.static void
Log a variable message if theTestCase
is currently enabled.static void
Log a message if the test case is currently enabled.static void
Log a message if the test case is currently enabled.static void
setTestCase
(String test) Set the current test case for this server.
-
Method Details
-
log
Log a message if theTestCase
is currently enabled.- Parameters:
testCase
- TheTestCase
to usemsg
- The message to log
-
log
Log a variable message if theTestCase
is currently enabled.- Parameters:
testCase
- TheTestCase
to usemsg
- The message to logvars
- The variables to replace, use "{}" in the message and have it replaced with a specified thing
-
log
Log a message if the test case is currently enabled.- Parameters:
test
- The test case to usemsg
- The message to log
-
log
Log a message if the test case is currently enabled.- Parameters:
test
- The test case to usemsg
- The message to logvars
- The variables to replace, use "{}" in the message and have it replaced with a specified thing
-
setTestCase
Set the current test case for this server. This will enable debug logging for this specific case which can be helpful by Slimefun or addon developers.- Parameters:
test
- The test case to enable or null to disable it
-
getTestCase
Get the current test case for this server or null if disabled- Returns:
- The current test case to enable or null if disabled
-