Esempio n. 1
0
        private void HandleConfigurationReload(object sender, NLog.Config.LoggingConfigurationReloadedEventArgs e)
        {
            if (e.Succeeded)
            {
                _host.Info("NLog configuration has been reloaded successfully");
            }
            else
            {
                _host.Error(e.Exception, "Attempted NLog configuration reload failed");
            }

            CurrentSeverity = ComputeCurrentSeverity();
        }
Esempio n. 2
0
 private static void LogManager_ConfigurationReloaded(object sender, NLog.Config.LoggingConfigurationReloadedEventArgs e)
 {
     // Raise the event in a thread-safe manner using the ?. operator.
     ConfigurationReloaded?.Invoke(sender, e);
 }
Esempio n. 3
0
 private static void LogManager_ConfigurationReloaded(object sender, NLog.Config.LoggingConfigurationReloadedEventArgs e)
 {
     addSentryLogging();
 }