diff options
author | Vincent Peugnet <33429034+vincent-peugnet@users.noreply.github.com> | 2020-05-18 09:51:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-18 09:51:39 +0200 |
commit | aa6bfe02129d37b75d9684e1d7f89d39412f8d12 (patch) | |
tree | 24b9a2564e388a1cfa706407a6dd245d4d0fe49d /app | |
parent | ceff73a9a7ab210034e5d8b0452d18135ce7137d (diff) | |
parent | e8b0993f7054299e61af1ab501aaca46285b0caa (diff) | |
download | wcms-aa6bfe02129d37b75d9684e1d7f89d39412f8d12.tar.gz wcms-aa6bfe02129d37b75d9684e1d7f89d39412f8d12.zip |
Merge pull request #113 from vincent-peugnet/tests-multiple-os
Tests multiple os
Diffstat (limited to 'app')
-rw-r--r-- | app/class/Logger.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/class/Logger.php b/app/class/Logger.php index e2ab4b6..beceddb 100644 --- a/app/class/Logger.php +++ b/app/class/Logger.php @@ -38,6 +38,14 @@ class Logger self::$verbosity = $verbosity; } + public static function close() + { + if (self::$file !== false) { + fclose(self::$file); + self::$file = false; + } + } + protected static function write(string $level, string $msg, array $args = []) { $caller = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 2)[1]; |