protected static function _getLog() { if (is_null(self::$_log)) { self::$_isDebug = false; self::$_isInfo = false; self::$_isNotice = false; switch (self::$_options['level']) { case self::LEVEL_DEBUG: self::$_isDebug = true; case self::LEVEL_INFO: self::$_isInfo = true; case self::LEVEL_NOTICE: self::$_isNotice = true; break; } switch (self::$_options['level']) { default: $logName = PEAR_LOG_TYPE_SYSTEM; break; } self::$_log = Log::singleton(self::$_options['handler'], $logName, 'OsmApi', null, self::$_options['level']); } return self::$_log; }