예제 #1
0
        private void disposeLogger()
        {
            if (_jsonLogger != null)
            {
                _jsonLogger.Dispose();
                _jsonLogger = null;
            }

            if (_directoryMonitor != null)
            {
                _directoryMonitor.Dispose();
                _directoryMonitor = null;
            }
        }
예제 #2
0
        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);
        }