public function log($str, $level = 'INFO', $log = false)
    {
        if ($this->isOutput()) {
            if ($log && in_array($level, array_keys(Logger::getLevels()))) {
                $this->vbot->log->log($level, $str);
            }
            echo '['.Carbon::now()->toDateTimeString().']'."[{$level}] ".$str.PHP_EOL;
        }
    }
public function log($str, $level = 'INFO', $log = false)
    {
        if ($this->isOutput()) {
            if ($log && in_array($level, array_keys(Logger::getLevels()))) {
                $this->vbot->log->log($level, $str);
            }
            echo '['.Carbon::now()->toDateTimeString().']'."[{$level}] ".$str.PHP_EOL;
        }
    }
public function log ( $ str , $ level = 'INFO' , $ log = false ) { if ( $ this -> isOutput ( ) ) { if ( $ log && in_array ( $ level , array_keys ( Logger :: getLevels ( ) ) ) ) { $ this -> vbot -> log -> log ( $ level , $ str ) ; } echo '[' . Carbon :: now ( ) -> toDateTimeString ( ) . ']' . "[{$level}] " . $ str . PHP_EOL ; } }
print in terminal.

@param $str
@param string $level
@param bool   $log
print in terminal .