public static bool belowThreshold(GoogleAnalyticsV4.DebugMode userLogLevel, GoogleAnalyticsV4.DebugMode comparelogLevel) { if (comparelogLevel == userLogLevel) { return(true); } else if (userLogLevel == GoogleAnalyticsV4.DebugMode.ERROR) { return(false); } else if (userLogLevel == GoogleAnalyticsV4.DebugMode.VERBOSE) { return(true); } else if (userLogLevel == GoogleAnalyticsV4.DebugMode.WARNING && (comparelogLevel == GoogleAnalyticsV4.DebugMode.INFO || comparelogLevel == GoogleAnalyticsV4.DebugMode.VERBOSE)) { return(false); } else if (userLogLevel == GoogleAnalyticsV4.DebugMode.INFO && (comparelogLevel == GoogleAnalyticsV4.DebugMode.VERBOSE)) { return(false); } return(true); }
private void SetLogLevel(GoogleAnalyticsV4.DebugMode logLevel) { switch (logLevel) { case GoogleAnalyticsV4.DebugMode.ERROR: handler._setLogLevel(1); break; case GoogleAnalyticsV4.DebugMode.VERBOSE: handler._setLogLevel(4); break; case GoogleAnalyticsV4.DebugMode.INFO: handler._setLogLevel(3); break; default: handler._setLogLevel(2); break; } }
public void SetLogLevelValue(GoogleAnalyticsV4.DebugMode logLevel) { this.logLevel = logLevel; }