public void StopAPILogging(string cacheID, string InstanceID, bool forceful) { try { if (APILogger.ContainsInstance(InstanceID.ToLower()) && forceful) { _forcefullStoppedLogging = forceful; } if (cacheID != null && APILogger != null && APILogger.StopLogging(InstanceID.ToLower())) { APILogging.APILogManager.APILogManger.StopLogging(cacheID); APILogging.APILogManager.APILogManger = null; AppUtil.LogEvent("API logging sucessfully stopped on cache " + cacheID, EventLogEntryType.Information); } } catch { } }