Add logger status function
All checks were successful
Deploy datapack to dev / Build (push) Successful in 6s
All checks were successful
Deploy datapack to dev / Build (push) Successful in 6s
This commit is contained in:
parent
f1186b76a6
commit
d9ef26cfa7
@ -40,6 +40,15 @@ class logger {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function status() {
|
||||||
|
switch($logger) {
|
||||||
|
case 0:
|
||||||
|
printf("Logging is disabled");
|
||||||
|
case 1:
|
||||||
|
printf("Logging is enabled");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function test_fatal() {
|
function test_fatal() {
|
||||||
logger(5, "This is a test");
|
logger(5, "This is a test");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user