Arguments for LogFactory.ConfigurationChanged events.
Inheritance: System.EventArgs
Esempio n. 1
0
		private static void OnConfigurationChanged(object sender, LoggingConfigurationChangedEventArgs e) {
			if ((sender == null) || (e == null)) {
				LogNullError(nameof(sender) + " || " + nameof(e));
				return;
			}

			InitConsoleLoggers();

			if (IsWaitingForUserInput) {
				OnUserInputStart();
			}
		}
 /// <summary>
 /// Protects from NLog.Config.SimpleConfigurator from others assemblies.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void onCfgLoggerChanged(object sender, LoggingConfigurationChangedEventArgs e)
 {
     fixLoggerCfg(e.OldConfiguration); // if we are in point after first initialization
     fixLoggerCfg(e.NewConfiguration); // if this is raised from others
     initLoggerCfg(); // we also should be ready to SimpleConfigurator from other assemblies etc.
 }