@@ -86,8 +86,8 @@ |
||
86 | 86 | $this->checkLogDir(); |
87 | 87 | |
88 | 88 | $logFilePath = $this->path . |
89 | - $this->config->get('handlers.file.prefix') |
|
90 | - . date('Y-m-d') . '.log'; |
|
89 | + $this->config->get('handlers.file.prefix') |
|
90 | + . date('Y-m-d') . '.log'; |
|
91 | 91 | |
92 | 92 | try { |
93 | 93 | $handler = fopen($logFilePath, 'a+'); |
@@ -143,7 +143,7 @@ |
||
143 | 143 | { |
144 | 144 | $format = 'Y-m-d H:i:s.u'; |
145 | 145 | $useTimestamp = $this->config->get('timestamp', false); |
146 | - if($useTimestamp === false){ |
|
146 | + if ($useTimestamp === false) { |
|
147 | 147 | $format = 'H:i:s.u'; |
148 | 148 | } |
149 | 149 |
@@ -79,7 +79,7 @@ |
||
79 | 79 | $logLevel = strtoupper($level); |
80 | 80 | $useIp = $this->config->get('handlers.file.ip_addr', false); |
81 | 81 | $ipStr = ''; |
82 | - if($useIp){ |
|
82 | + if ($useIp) { |
|
83 | 83 | $ip = Str::ip(); |
84 | 84 | $ipStr = '[' . $ip . ']' . $this->tab; |
85 | 85 | } |