lib/ShortPixel/SPLog.php
public static function Get($producer) {
        if( !(self::$instance && ($producer & self::$instance->acceptedProducers)) ) {
            if(!isset(self::$dummy)) {
                self::$dummy = new SPLog(0, self::PRODUCER_NONE, self::TARGET_CONSOLE, false);
            }
            return self::$dummy;
        }
        return self::$instance;
    }
public static function Get($producer) {
        if( !(self::$instance && ($producer & self::$instance->acceptedProducers)) ) {
            if(!isset(self::$dummy)) {
                self::$dummy = new SPLog(0, self::PRODUCER_NONE, self::TARGET_CONSOLE, false);
            }
            return self::$dummy;
        }
        return self::$instance;
    }
public static function Get ( $ producer ) { if ( ! ( self :: $ instance && ( $ producer & self :: $ instance -> acceptedProducers ) ) ) { if ( ! isset ( self :: $ dummy ) ) { self :: $ dummy = new SPLog ( 0 , self :: PRODUCER_NONE , self :: TARGET_CONSOLE , false ) ; } return self :: $ dummy ; } return self :: $ instance ; }
returns the current logger. If the logger is not set to log from that producer or if the log is not initialized, will return a dummy logger which doesn't log.
@param $producer
@return SPLog
returns the current logger . If the logger is not set to log from that producer or if the log is not initialized will return a dummy logger which doesn t log .