Add logger status function
This commit is contained in:
parent
3b6990be85
commit
58ef0a251e
@ -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