think\console\Output::setVerbosity PHP Method

setVerbosity() public method

public setVerbosity ( $level )
    public function setVerbosity($level)
    {
        $this->verbosity = (int) $level;
    }

Usage Example

Example #1
0
 /**
  * @param Output    $output
  * @param Exception $e
  */
 public function renderForConsole(Output $output, Exception $e)
 {
     if (App::$debug) {
         $output->setVerbosity(Output::VERBOSITY_DEBUG);
     }
     (new Console())->renderException($e, $output);
 }
All Usage Examples Of think\console\Output::setVerbosity