@@ -12,8 +12,8 @@ discard block |
||
12 | 12 | private $prefix = null; |
13 | 13 | private $formatter = null; |
14 | 14 | private $outputFormat = "[%datetime%] [%channel%] [%level_name%] %message% %context% %extra%\n"; |
15 | - private $dateFormat = "Y-m-d H:i:s"; |
|
16 | - private $path = "/tmp/gameScan.log"; |
|
15 | + private $dateFormat = "Y-m-d H:i:s"; |
|
16 | + private $path = "/tmp/gameScan.log"; |
|
17 | 17 | private $logLevel = 200; |
18 | 18 | private $processor = null; |
19 | 19 | private $availablesConfigs = [ |
@@ -44,18 +44,18 @@ discard block |
||
44 | 44 | |
45 | 45 | private function initializeFormatter($formatter) |
46 | 46 | { |
47 | - $this->formatter = $formatter === null ? new LineFormatter($this->outputFormat, $this->dateFormat) : $formatter ; |
|
47 | + $this->formatter = $formatter === null ? new LineFormatter($this->outputFormat, $this->dateFormat) : $formatter; |
|
48 | 48 | } |
49 | 49 | private function initializeHandler($handler) |
50 | 50 | { |
51 | - $this->handlers[] = $handler === null ? new StreamHandler($this->path, $this->logLevel) : $handler ; |
|
51 | + $this->handlers[] = $handler === null ? new StreamHandler($this->path, $this->logLevel) : $handler; |
|
52 | 52 | $handler = end($this->handlers); |
53 | 53 | $handler->setFormatter($this->formatter); |
54 | 54 | } |
55 | 55 | |
56 | 56 | private function initializeProcessor($processor) |
57 | 57 | { |
58 | - $this->processor = $processor === null ? new \Monolog\Processor\WebProcessor() : $processor ; |
|
58 | + $this->processor = $processor === null ? new \Monolog\Processor\WebProcessor() : $processor; |
|
59 | 59 | } |
60 | 60 | |
61 | 61 | private function initializeLoger() |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | private function resetHandlers() |
81 | 81 | { |
82 | 82 | array_map( |
83 | - function () { |
|
83 | + function() { |
|
84 | 84 | return $this->log->popHandler(); |
85 | 85 | }, |
86 | 86 | $this->log->getHandlers() |