public override void Write() { if (_settings == null) { _settings = new QuickLoggerSettings(); } _config = JsonConvert.SerializeObject(_settings, JsonSerializerSettings); }
public override void Write() { if (_settings == null) { _settings = new QuickLoggerSettings(); } if (File.Exists(_configurationFilePath)) { File.Delete(_configurationFilePath); } using (var sw = new StreamWriter(_configurationFilePath)) sw.Write(JsonConvert.SerializeObject(_settings, JsonSerializerSettings)); }
public QuickLoggerStringConfigManager() { _settings = new QuickLoggerSettings(); }