예제 #1
0
 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));
        }
예제 #3
0
 public QuickLoggerStringConfigManager()
 {
     _settings = new QuickLoggerSettings();
 }