src/MessageConsumer.php
/**
     * Logs whether the event was handled.
     *
     * @param string $severity The severity of the message
     * @param string $action   The action being logged
     * @param string $state    The state of the event
     * @param array  $headers  Attributes of the message headers
     * @param array  $body     Attributes of the message body
     */
Logs whether the event was handled.
Logs whether the event was handled .
public static function log(string $severity, string $action, string $state, array $headers, array $body): void
    {
        $message = 'Payload: ' . \GuzzleHttp\json_encode(['headers' => $headers, 'body' => $body]);
        $logger = new LogCapsule(['action' => $action, 'state' => $state, 'event' => $headers['event']]);
        invoke([$logger], $severity, [$message]);
    }
public static function log ( string $ severity , string $ action , string $ state , array $ headers , array $ body ) : void { $ message = 'Payload: ' . \ GuzzleHttp \ json_encode ( [ 'headers' => $ headers , 'body' => $ body ] ) ; $ logger = new LogCapsule ( [ 'action' => $ action , 'state' => $ state , 'event' => $ headers [ 'event' ] ] ) ; invoke ( [ $ logger ] , $ severity , [ $ message ] ) ; }
Logs whether the event was handled.
Logs whether the event was handled .