public static function getLogger($level = null)
    {
        if (empty($level)) {
            $level = static::DEFAULT_LEVEL;
        }

        if (empty(static::$logger)) {
            static::setLogger($level);
        }

        return static::$logger;
    }
public static function getLogger($level = null)
    {
        if (empty($level)) {
            $level = static::DEFAULT_LEVEL;
        }

        if (empty(static::$logger)) {
            static::setLogger($level);
        }

        return static::$logger;
    }
public static function getLogger ( $ level = null ) { if ( empty ( $ level ) ) { $ level = static :: DEFAULT_LEVEL ; } if ( empty ( static :: $ logger ) ) { static :: setLogger ( $ level ) ; } return static :: $ logger ; }
Get logger object

@param string $level Log level
@return object
Get logger object