From 299198f7181fccf1e9a684649d173a1ebbdfbd1e Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Mon, 5 Mar 2018 12:04:28 -0800 Subject: Move SimpleLogger lib into app source tree --- .../simpleLogger/src/SimpleLogger/File.php | 48 ---------------------- 1 file changed, 48 deletions(-) delete mode 100644 vendor/fguillot/simpleLogger/src/SimpleLogger/File.php (limited to 'vendor/fguillot/simpleLogger/src/SimpleLogger/File.php') diff --git a/vendor/fguillot/simpleLogger/src/SimpleLogger/File.php b/vendor/fguillot/simpleLogger/src/SimpleLogger/File.php deleted file mode 100644 index be3bfa85..00000000 --- a/vendor/fguillot/simpleLogger/src/SimpleLogger/File.php +++ /dev/null @@ -1,48 +0,0 @@ -filename = $filename; - } - - /** - * Logs with an arbitrary level. - * - * @param mixed $level - * @param string $message - * @param array $context - */ - public function log($level, $message, array $context = array()) - { - $line = $this->formatMessage($level, $message, $context); - - if (file_put_contents($this->filename, $line, FILE_APPEND | LOCK_EX) === false) { - throw new RuntimeException('Unable to write to the log file.'); - } - } -} -- cgit v1.2.3