src/Log/LogException.php
public static function invalidFileName(
        string $fileName,
        \Exception $previous = null
    ): self {
        return new self(
            "invalid log file \"{$fileName}\"",
            self::INVALID_FILENAME,
            $previous
        );
    }
public static function invalidFileName(
        string $fileName,
        \Exception $previous = null
    ): self {
        return new self(
            "invalid log file \"{$fileName}\"",
            self::INVALID_FILENAME,
            $previous
        );
    }
public static function invalidFileName ( string $ fileName , \ Exception $ previous = null ) : self { return new self ( "invalid log file \"{$fileName}\"" , self :: INVALID_FILENAME , $ previous ) ; }
Creates an exception if an invalid file name was set in configuration of
a file logger.

@param string $fileName
The file name
@param \Exception|null $previous
Previous exception
@return \Gustav\Utils\Log\LogException
The exception
Creates an exception if an invalid file name was set in configuration of a file logger .