final protected function log($str, $logLevel = 0)
    {
        if (isset($this->logger)) {
            call_user_func($this->logger, $str, $logLevel);
        }
    }
final protected function log($str, $logLevel = 0)
    {
        if (isset($this->logger)) {
            call_user_func($this->logger, $str, $logLevel);
        }
    }
final protected function log ( $ str , $ logLevel = 0 ) { if ( isset ( $ this -> logger ) ) { call_user_func ( $ this -> logger , $ str , $ logLevel ) ; } }
Write a log to the logger

@param string $str
@param int $logLevel
@return void
Write a log to the logger