Flow PHP

LogRecordConverter

Read onlyYes
FinalYes

Convert Monolog LogRecord to Telemetry LogRecord with proper attribute mapping.

This class handles the conversion of Monolog log records to Telemetry log records, mapping Monolog's severity levels and applying appropriate prefixes to context and extra attributes.

Methods

__construct()  : mixed
convert()  : LogRecord

Methods

convert()

public convert(LogRecord $record) : LogRecord
Parameters
$record : LogRecord
Return values
LogRecord

        
On this page

Search results