Skip to content

Commit ff3b298

Browse files
committed
Added payload data for exceptions logging
1 parent cc9fa39 commit ff3b298

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Logger.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,14 +132,16 @@ public function putData($data, string $fileName)
132132
* @param Throwable $throwable
133133
* @param string $fileName
134134
* @param bool $withTrace
135+
* @param array $payload
135136
* @return void
136137
*/
137138
public function putException(
138139
Throwable $throwable,
139140
string $fileName,
140-
bool $withTrace = false
141+
bool $withTrace = false,
142+
array $payload = []
141143
) {
142-
$this->putData(array_merge([
144+
$this->putData(array_merge($payload, [
143145
'message' => $throwable->getMessage(),
144146
'file' => $throwable->getFile(),
145147
'line' => $throwable->getLine(),

0 commit comments

Comments
 (0)