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.
1 parent cc9fa39 commit ff3b298Copy full SHA for ff3b298
src/Logger.php
@@ -132,14 +132,16 @@ public function putData($data, string $fileName)
132
* @param Throwable $throwable
133
* @param string $fileName
134
* @param bool $withTrace
135
+ * @param array $payload
136
* @return void
137
*/
138
public function putException(
139
Throwable $throwable,
140
string $fileName,
- bool $withTrace = false
141
+ bool $withTrace = false,
142
+ array $payload = []
143
) {
- $this->putData(array_merge([
144
+ $this->putData(array_merge($payload, [
145
'message' => $throwable->getMessage(),
146
'file' => $throwable->getFile(),
147
'line' => $throwable->getLine(),
0 commit comments