Skip to content

Commit 815c0ec

Browse files
authored
Merge pull request #4 from H0pex/feature/payload
Added payload data for exceptions logging
2 parents edc7203 + ff3b298 commit 815c0ec

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)