Create general purpose logging module #4

Merged
ehrumsey merged 15 commits from dev-logging into dev 2025-03-11 20:31:37 -05:00
Showing only changes of commit accd746389 - Show all commits

View File

@ -1,10 +1,10 @@
@lazy
function logger(type, caller, message) {
if ($type > 6 || $type < 1) {
say "The log type requested does not exist. Please find the caller ($caller) and resolve this issue.";
}
$tmp_logger = false;
$tmp_type = $type;
if ($temp_type > 6 || $temp_type < 1) {
say "The log type requested does not exist. Please find the caller ($caller) and resolve this issue.";
}
if ($temp_type >= $log_level) { $tmp_logger = $type; }
switch($tmp_logger) {
case 5: