class LogsHandler extends AbstractProcessingHandler

Properties

protected FormatterInterface|null $batchFormatter

The formatter to use for the logs generated via handleBatch().

Methods

void
handleBatch(array $records)

No description

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 22
void handleBatch(array $records)

No description

Parameters

array $records

Return Value

void

at line 57
LogsHandler setBatchFormatter(FormatterInterface $formatter)

Set the formatter for the logs generated by handleBatch().

Parameters

FormatterInterface $formatter

Return Value

LogsHandler

at line 67
FormatterInterface getBatchFormatter()

Get the formatter for the logs generated by handleBatch().

Return Value

FormatterInterface

at line 79
protected void write(LogRecord $record)

Write a log record.

Parameters

LogRecord $record

Return Value

void

at line 87
protected void doWrite(LogRecord $record)

Write a record to Sentry Logs.

Parameters

LogRecord $record

Return Value

void