protected function getOutputRecord(array $record)
    {
        // Adds the basic log details.
        $output = [
            static::DATETIME_OFFSET => $record['datetime']->format(static::DATETIME_FORMAT),
            static::SEVERITY_OFFSET => $record['level_name'],
            static::CONTENT_OFFSET  => $record['message'],
        ];

        // Adds the context file.
        if (isset($record['context']['file'])) {
            $output[static::FILE_OFFSET] = $record['context']['file'];
        }

        // Adds the context line.
        if (isset($record['context']['line'])) {
            $output[static::LINE_OFFSET] = $record['context']['line'];
        }

        // Adds the stack information.
        if (isset($record['extra'][EnvironmentProcessorAbstract::LOG_STACK])) {
            $output[static::STACK_OFFSET] = $record['extra'][EnvironmentProcessorAbstract::LOG_STACK];
        }

        // Adds the trace information.
        if (isset($record['extra'][BacktraceProcessor::TRACE_OFFSET])) {
            $output[static::TRACE_OFFSET] = $record['extra'][BacktraceProcessor::TRACE_OFFSET];
        }

        return $output;
    }
protected function getOutputRecord(array $record)
    {
        // Adds the basic log details.
        $output = [
            static::DATETIME_OFFSET => $record['datetime']->format(static::DATETIME_FORMAT),
            static::SEVERITY_OFFSET => $record['level_name'],
            static::CONTENT_OFFSET  => $record['message'],
        ];

        // Adds the context file.
        if (isset($record['context']['file'])) {
            $output[static::FILE_OFFSET] = $record['context']['file'];
        }

        // Adds the context line.
        if (isset($record['context']['line'])) {
            $output[static::LINE_OFFSET] = $record['context']['line'];
        }

        // Adds the stack information.
        if (isset($record['extra'][EnvironmentProcessorAbstract::LOG_STACK])) {
            $output[static::STACK_OFFSET] = $record['extra'][EnvironmentProcessorAbstract::LOG_STACK];
        }

        // Adds the trace information.
        if (isset($record['extra'][BacktraceProcessor::TRACE_OFFSET])) {
            $output[static::TRACE_OFFSET] = $record['extra'][BacktraceProcessor::TRACE_OFFSET];
        }

        return $output;
    }
protected function getOutputRecord ( array $ record ) { // Adds the basic log details. $ output = [ static :: DATETIME_OFFSET => $ record [ 'datetime' ] -> format ( static :: DATETIME_FORMAT ) , static :: SEVERITY_OFFSET => $ record [ 'level_name' ] , static :: CONTENT_OFFSET => $ record [ 'message' ] , ] ; // Adds the context file. if ( isset ( $ record [ 'context' ] [ 'file' ] ) ) { $ output [ static :: FILE_OFFSET ] = $ record [ 'context' ] [ 'file' ] ; } // Adds the context line. if ( isset ( $ record [ 'context' ] [ 'line' ] ) ) { $ output [ static :: LINE_OFFSET ] = $ record [ 'context' ] [ 'line' ] ; } // Adds the stack information. if ( isset ( $ record [ 'extra' ] [ EnvironmentProcessorAbstract :: LOG_STACK ] ) ) { $ output [ static :: STACK_OFFSET ] = $ record [ 'extra' ] [ EnvironmentProcessorAbstract :: LOG_STACK ] ; } // Adds the trace information. if ( isset ( $ record [ 'extra' ] [ BacktraceProcessor :: TRACE_OFFSET ] ) ) { $ output [ static :: TRACE_OFFSET ] = $ record [ 'extra' ] [ BacktraceProcessor :: TRACE_OFFSET ] ; } return $ output ; }
Returns the customized record.

@param array $record

@return array
Returns the customized record .