public static void Record(GlassTelemetryEventTypes eventType, string format, params object[] elements) { _circularLog.Enqueue($"{DateTime.Now} - {eventType} - {string.Format(format, elements)}"); if (_circularLog.Count >= EntryPoint.Config.LogBufferLength) _circularLog.Dequeue(); // bye bye Debug.Assert(_circularLog.Count < EntryPoint.Config.LogBufferLength); }
public static void Record(GlassTelemetryEventTypes eventType) { _circularLog.Enqueue($"{DateTime.Now} - {eventType}"); if (_circularLog.Count >= EntryPoint.Config.LogBufferLength) _circularLog.Dequeue(); // bye bye Debug.Assert(_circularLog.Count < EntryPoint.Config.LogBufferLength); }