LogsHandler
class LogsHandler extends AbstractProcessingHandler
Properties
| protected FormatterInterface|null | $batchFormatter | The formatter to use for the logs generated via handleBatch(). |
Methods
void
handleBatch(array $records)
Handle a set of records at once, sending the most severe with the others as context.
setBatchFormatter(FormatterInterface $formatter)
Set the formatter for the logs generated by handleBatch().
FormatterInterface
getBatchFormatter()
Get the formatter for the logs generated by handleBatch().
void
write(LogRecord $record)
Write a log record.
void
doWrite(LogRecord $record)
Write a record to Sentry Logs.
Details
at line 27
void
handleBatch(array $records)
Handle a set of records at once, sending the most severe with the others as context.
at line 62
LogsHandler
setBatchFormatter(FormatterInterface $formatter)
Set the formatter for the logs generated by handleBatch().
at line 72
FormatterInterface
getBatchFormatter()
Get the formatter for the logs generated by handleBatch().
at line 84
protected void
write(LogRecord $record)
Write a log record.
at line 92
protected void
doWrite(LogRecord $record)
Write a record to Sentry Logs.