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 9117c84653 - Show all commits

View File

@ -5,7 +5,7 @@ function logger(type, caller, message) {
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; }
if ($temp_type >= $log_level || $logger) { $tmp_logger = $type; }
switch($tmp_logger) {
case 5:
say "FATAL: ($caller) $message";