diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2020-05-18 17:09:46 +0200 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2020-05-18 17:09:46 +0200 |
commit | bab3d969f6ab1846d818e4ef4d4f777c13575d88 (patch) | |
tree | b8a09d75779f046a774e0b7afd36cfd5f9ca115a /app/class/Logger.php | |
parent | 121af5f84ad9262e5c509dc1dd741166ca1dc3de (diff) | |
parent | aa6bfe02129d37b75d9684e1d7f89d39412f8d12 (diff) | |
download | wcms-bab3d969f6ab1846d818e4ef4d4f777c13575d88.tar.gz wcms-bab3d969f6ab1846d818e4ef4d4f777c13575d88.zip |
Merge branch 'master' of https://github.com/vincent-peugnet/wcms
Diffstat (limited to 'app/class/Logger.php')
-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]; |