Closed oparreche closed 11 months ago
public function write(array|LogRecord $record): void { if ($record instanceof LogRecord) { $record = $record->toArray(); } foreach($this->recordToMessage->buildMessages($record) as $message) { try { $this->discord->send($message); } catch (\Exception $e) { if (!$this->ignoreExceptions) { throw $e; } } } }
This function doesn't works on PHP versions < 8.0
We will not support PHP 7.x
Sorry.
public function write(array|LogRecord $record): void { if ($record instanceof LogRecord) { $record = $record->toArray(); } foreach($this->recordToMessage->buildMessages($record) as $message) { try { $this->discord->send($message); } catch (\Exception $e) { if (!$this->ignoreExceptions) { throw $e; } } } }