We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 71638eb + 119f566 commit 078a6bcCopy full SHA for 078a6bc
1 file changed
src/app/Classes/LogViewer.php
@@ -179,6 +179,25 @@ public static function all()
179
}
180
181
182
+ if (empty($log)) {
183
+ $lines = preg_split('/\r\n|\r|\n/', $file);
184
+
185
+ foreach ($lines as $line) {
186
+ if (!empty(trim($line))) {
187
+ $log[] = [
188
+ 'context' => null,
189
+ 'level' => 'info',
190
+ 'level_class' => static::$levels_classes['info'],
191
+ 'level_img' => static::$levels_imgs['info'],
192
+ 'date' => null,
193
+ 'text' => $line,
194
+ 'in_file' => null,
195
+ 'stack' => '',
196
+ ];
197
+ }
198
199
200
201
return array_reverse($log);
202
203
0 commit comments