NLog.LogFactory.EnableLogging C# (CSharp) 메소드

EnableLogging() 공개 메소드

Increases the log enable counter and if it reaches 0 the logs are disabled.
Logging is enabled if the number of EnableLogging calls is greater than or equal to DisableLogging calls.
public EnableLogging ( ) : void
리턴 void
        public void EnableLogging()
        {
            lock (this)
            {
                this.logsEnabled++;
                if (this.logsEnabled == 0)
                {
                    this.ReconfigExistingLoggers();
                }
            }
        }

Usage Example

예제 #1
0
 /// <summary>Increases the log enable counter and if it reaches 0 the logs are disabled.</summary>
 /// <remarks>Logging is enabled if the number of <see cref="EnableLogging"/> calls is greater
 /// than or equal to <see cref="DisableLogging"/> calls.</remarks>
 public static void EnableLogging()
 {
     globalFactory.EnableLogging();
 }
All Usage Examples Of NLog.LogFactory::EnableLogging