public static function log($message, string $priority = self::INFO): ?string
    {
        $logger = self::sendToLogger(self::getLogger(), $priority, $message);

        if ($logger instanceof Logger) {
            return $logger->getLastExceptionFile();
        }

        return null;
    }