src/Application/Messaging/Event/Subscriber/EventLogger.php
public function logEvent(EventMessage $message): void
    {
        $name = $message->payloadType()->toString();

        $this->logger->info(
            sprintf('Event dispatched {%s}', $name),
            ['message' => $message->toString()]
        );
    }
public function logEvent(EventMessage $message): void
    {
        $name = $message->payloadType()->toString();

        $this->logger->info(
            sprintf('Event dispatched {%s}', $name),
            ['message' => $message->toString()]
        );
    }
public function logEvent ( EventMessage $ message ) : void { $ name = $ message -> payloadType ( ) -> toString ( ) ; $ this -> logger -> info ( sprintf ( 'Event dispatched {%s}' , $ name ) , [ 'message' => $ message -> toString ( ) ] ) ; }
Logs the event message

@param EventMessage $message The event message

@return void
Logs the event message