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

DisableLogging() public static méthode

Decreases the log enable counter and if it reaches -1 the logs are disabled.
Logging is enabled if the number of EnableLogging calls is greater than or equal to DisableLogging calls.
public static DisableLogging ( ) : IDisposable
Résultat IDisposable
        public static IDisposable DisableLogging()
        {
            return factory.SuspendLogging();
        }