diff --git a/src/Log.php b/src/Log.php index 1b18ea3..d0eba40 100644 --- a/src/Log.php +++ b/src/Log.php @@ -161,6 +161,12 @@ class Log { ); $level = 'WARNING'; } + if (!self :: $level) + self :: $level = ( + App::initialized()? + App::get('log.level', 'WARNING', 'string'): + 'WARNING' + ); if (self :: $levels[$level] < self :: $levels[self :: $level]) return true; if(self :: $filepath && is_null(self :: $file_fd)) { self :: $file_fd = fopen(self :: $filepath, 'a');