NLog.LogManager.Shutdown C# (CSharp) Méthode

Shutdown() public static méthode

Dispose all targets, and shutdown logging.
public static Shutdown ( ) : void
Résultat void
        public static void Shutdown()
        {
            if (Configuration != null && Configuration.AllTargets != null)
            {
                foreach (var target in Configuration.AllTargets)
                {
                    if (target != null) target.Dispose();
                }
            }
        }