public function enable(): self
    {
        if (!empty($this->logs)) {
            $this->logs->addListener($this);
        }

        return $this;
    }
public function enable(): self
    {
        if (!empty($this->logs)) {
            $this->logs->addListener($this);
        }

        return $this;
    }
public function enable ( ) : self { if ( ! empty ( $ this -> logs ) ) { $ this -> logs -> addListener ( $ this ) ; } return $ this ; }
Enable logging in console mode.

@return DebugListener
Enable logging in console mode .