From 3ce06261504cc934dd0479471565b4197d86e5eb Mon Sep 17 00:00:00 2001 From: Trent Schmidt Date: Thu, 15 Feb 2018 03:53:11 -0600 Subject: [PATCH] Spelling fix --- .../Monolog/Handler/DatabaselHandler.php | 41 ------------------- 1 file changed, 41 deletions(-) delete mode 100644 src/Logger/Monolog/Handler/DatabaselHandler.php diff --git a/src/Logger/Monolog/Handler/DatabaselHandler.php b/src/Logger/Monolog/Handler/DatabaselHandler.php deleted file mode 100644 index 297d0c6..0000000 --- a/src/Logger/Monolog/Handler/DatabaselHandler.php +++ /dev/null @@ -1,41 +0,0 @@ -table = env('DB_LOG_TABLE', 'laravel_logs'); - $this->connection = env('DB_LOG_CONNECTION', env('DB_CONNECTION', 'mysql')); - - parent::__construct($level, $bubble); - } - - protected function write(array $record) - { - $data = [ - 'instance' => gethostname(), - 'application' => env('APP_LOG_NAME', 'unknown'), - 'message' => $record['message'], - 'channel' => $record['channel'], - 'level' => $record['level'], - 'level_name' => $record['level_name'], - 'context' => json_encode($record['context']), - 'remote_addr' => isset($_SERVER['REMOTE_ADDR']) ? ip2long($_SERVER['REMOTE_ADDR']) : null, - 'user_agent' => isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : null, - 'created_by' => Auth::id() > 0 ? Auth::id() : null, - 'created_at' => $record['datetime']->format('Y-m-d H:i:s') - ]; - - DB::connection($this->connection)->table($this->table)->insert($data); - } -}