src/Debugger/Debugger.php
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;
    }
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;
    }
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 ; }
Logs message or exception.

@param mixed  $message
@param string $priority

@return string|null
Logs message or exception .