Platformsh\Cli\Command\Environment\EnvironmentLogCommand::configure PHP Method

configure() protected method

protected configure ( )
    protected function configure()
    {
        $this->setName('environment:logs')->setAliases(['log'])->setDescription("Read an environment's logs")->addArgument('type', InputArgument::OPTIONAL, 'The log type, e.g. "access" or "error"')->addOption('lines', null, InputOption::VALUE_REQUIRED, 'The number of lines to show', 100)->addOption('tail', null, InputOption::VALUE_NONE, 'Continuously tail the log');
        $this->addProjectOption()->addEnvironmentOption()->addAppOption();
        $this->setHiddenAliases(['logs']);
        $this->addExample('Display a choice of logs that can be read');
        $this->addExample('Read the deploy log', 'deploy');
        $this->addExample('Read the access log continuously', 'access --tail');
        $this->addExample('Read the last 500 lines of the cron log', 'cron --lines 500');
    }