lib/ShortPixel/SPLog.php
public function log($producer, $msg, $object = false) {
        if(!($this->acceptedProducers & $producer)) { return; }

        $msgFmt = self::format($msg, $this->processId, $this->time, $this->flags);
        if($object) {
            $msgFmt .= " " . json_encode($object);
        }
        $this->logRaw($msgFmt);
    }
public function log($producer, $msg, $object = false) {
        if(!($this->acceptedProducers & $producer)) { return; }

        $msgFmt = self::format($msg, $this->processId, $this->time, $this->flags);
        if($object) {
            $msgFmt .= " " . json_encode($object);
        }
        $this->logRaw($msgFmt);
    }
public function log ( $ producer , $ msg , $ object = false ) { if ( ! ( $ this -> acceptedProducers & $ producer ) ) { return ; } $ msgFmt = self :: format ( $ msg , $ this -> processId , $ this -> time , $ this -> flags ) ; if ( $ object ) { $ msgFmt .= " " . json_encode ( $ object ) ; } $ this -> logRaw ( $ msgFmt ) ; }
Log the message if the logger is configured to log from this producer
@param $producer the source of logging ( one of the SPLog::PRODUCER_* values )
@param $msg the actual message
@param bool $object
Log the message if the logger is configured to log from this producer