'debug', Logger::INFO => 'info', Logger::WARNING => 'warning', Logger::ERROR => 'error', ]; public function __construct(Connection $connection) { parent::__construct(new ConfigObject([])); $this->connection = $connection; } public function log($severity, $message) { $message = \iconv('UTF-8', 'UTF-8//IGNORE', $message); $this->connection->sendNotification( Notification::create('logger.log', [ static::$severityMap[$severity], $message ]) ); } }