src/Leevel/Log/File.php
protected function normalizePath(string $level): string
    {
        if (!$this->option['path']) {
            throw new InvalidArgumentException(
                'Path for log has not set.'
            );
        }

        return $this->option['path'].'/'.$this->option['channel'].'.'.
            ($level ? $level.'/' : '').date($this->option['name']).'.log';
    }
protected function normalizePath(string $level): string
    {
        if (!$this->option['path']) {
            throw new InvalidArgumentException(
                'Path for log has not set.'
            );
        }

        return $this->option['path'].'/'.$this->option['channel'].'.'.
            ($level ? $level.'/' : '').date($this->option['name']).'.log';
    }
格式化日志路径.

@param string $level

@return string