private void disposeLogger() { if (_jsonLogger != null) { _jsonLogger.Dispose(); _jsonLogger = null; } if (_directoryMonitor != null) { _directoryMonitor.Dispose(); _directoryMonitor = null; } }
private void resetJsonLogger() { disposeLogger(); var fileName = string.Format("log-{0}.json", DateTime.Now.ToString("yyyy-MM-dd[hh-mm-ss]")); var path = Path.Combine(ThisGuiModelData.DumperSettings.DumperDirectory, fileName); _jsonLogger = new JsonLogger(path); }