src/Leevel/Log/Console/Clear.php
public function handle(IApp $app): void
    {
        $this->line('Start to clear cache log.');

        delete_directory($cachePath = $app->runtimePath('log'), true);

        $this->info(sprintf('Log files in path %s cache clear successed.', $cachePath));
    }
public function handle(IApp $app): void
    {
        $this->line('Start to clear cache log.');

        delete_directory($cachePath = $app->runtimePath('log'), true);

        $this->info(sprintf('Log files in path %s cache clear successed.', $cachePath));
    }
响应命令.

@param \Leevel\Kernel\IApp $app