public function log($level, $message, $object = '')
    {
        if ($this->shouldIgnoreThisLog($level)) {
            return;
        }
        $msg = $this->generateLog($level, $message, $object);
        $target_file = $this->decideTargetFile();
        if (!$target_file) {
            echo $msg;
            return;
        }
        @file_put_contents($target_file, $msg, FILE_APPEND);
    }
public function log($level, $message, $object = '')
    {
        if ($this->shouldIgnoreThisLog($level)) {
            return;
        }
        $msg = $this->generateLog($level, $message, $object);
        $target_file = $this->decideTargetFile();
        if (!$target_file) {
            echo $msg;
            return;
        }
        @file_put_contents($target_file, $msg, FILE_APPEND);
    }
public function log ( $ level , $ message , $ object = '' ) { if ( $ this -> shouldIgnoreThisLog ( $ level ) ) { return ; } $ msg = $ this -> generateLog ( $ level , $ message , $ object ) ; $ target_file = $ this -> decideTargetFile ( ) ; if ( ! $ target_file ) { echo $ msg ; return ; } @ file_put_contents ( $ target_file , $ msg , FILE_APPEND ) ; }
This could be overrode for customized log output
@param $level
@param $message
@param string $object
This could be overrode for customized log output