Compare commits
2 Commits
561b7cc39a
...
d9ef26cfa7
| Author | SHA1 | Date | |
|---|---|---|---|
| d9ef26cfa7 | |||
| f1186b76a6 |
@ -31,7 +31,7 @@ class logger {
|
||||
}
|
||||
}
|
||||
|
||||
function logging_toggle() {
|
||||
function toggle() {
|
||||
switch($logger) {
|
||||
case 0:
|
||||
$logger = true;
|
||||
@ -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() {
|
||||
logger(5, "This is a test");
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user