Skip to content

Commit bf958be

Browse files
committed
Remove datetime from custom logs
1 parent be0ead1 commit bf958be

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/LogRecord.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ class LogRecord extends \Monolog\LogRecord
77
public function toArray(): array
88
{
99
$array = parent::toArray();
10+
11+
// Remove datetime
12+
unset($array['datetime']);
13+
14+
// Add origin
1015
return array_merge(['origin' => 'app.' . config('custom-logging.container_role')], $array);
1116
}
1217
}

0 commit comments

Comments
 (0)