original_string: public function setLoggers($enable)
      {
          Log::drop('stdout');
          Log::drop('stderr');
          if ($enable === false) {
              return;
          }
          $outLevels = ['notice', 'info'];
          if ($enable === static::VERBOSE || $enable === true) {
              $outLevels[] = 'debug';
          }
          if ($enable !== static::QUIET) {
              $stdout = new ConsoleLog([
                  'types' => $outLevels,
                  'stream' => $this->_out
              ]);
              Log::setConfig('stdout', ['engine' => $stdout]);
          }
          $stderr = new ConsoleLog([
              'types' => ['emergency', 'alert', 'critical', 'error', 'warning'],
              'stream' => $this->_err,
          ]);
          Log::setConfig('stderr', ['engine' => $stderr]);
      }
code: public function setLoggers($enable)
      {
          Log::drop('stdout');
          Log::drop('stderr');
          if ($enable === false) {
              return;
          }
          $outLevels = ['notice', 'info'];
          if ($enable === static::VERBOSE || $enable === true) {
              $outLevels[] = 'debug';
          }
          if ($enable !== static::QUIET) {
              $stdout = new ConsoleLog([
                  'types' => $outLevels,
                  'stream' => $this->_out
              ]);
              Log::setConfig('stdout', ['engine' => $stdout]);
          }
          $stderr = new ConsoleLog([
              'types' => ['emergency', 'alert', 'critical', 'error', 'warning'],
              'stream' => $this->_err,
          ]);
          Log::setConfig('stderr', ['engine' => $stderr]);
      }
code_tokens: public function setLoggers ( $ enable ) { Log :: drop ( 'stdout' ) ; Log :: drop ( 'stderr' ) ; if ( $ enable === false ) { return ; } $ outLevels = [ 'notice' , 'info' ] ; if ( $ enable === static :: VERBOSE || $ enable === true ) { $ outLevels [ ] = 'debug' ; } if ( $ enable !== static :: QUIET ) { $ stdout = new ConsoleLog ( [ 'types' => $ outLevels , 'stream' => $ this -> _out ] ) ; Log :: setConfig ( 'stdout' , [ 'engine' => $ stdout ] ) ; } $ stderr = new ConsoleLog ( [ 'types' => [ 'emergency' , 'alert' , 'critical' , 'error' , 'warning' ] , 'stream' => $ this -> _err , ] ) ; Log :: setConfig ( 'stderr' , [ 'engine' => $ stderr ] ) ; }
docstring: Connects or disconnects the loggers to the console output.
  
  Used to enable or disable logging stream output to stdout and stderr
  If you don't wish all log output in stdout or stderr
  through Cake's Log class, call this function with `$enable=false`.
  
  @param int|bool $enable Use a boolean to enable/toggle all logging. Use
  one of the verbosity constants (self::VERBOSE, self::QUIET, self::NORMAL)
  to control logging levels. VERBOSE enables debug logs, NORMAL does not include debug logs,
  QUIET disables notice, info and debug logs.
  @return void
docstring_tokens: Connects or disconnects the loggers to the console output .