Esempio n. 1
0
        public void ChangeLoggingLevels(LogLevel minLevel)
        {
            var config = new NLog.Config.LoggingConfiguration();

            config.RemoveRuleByName("*");
            config.AddRule(minLevel, LogLevel.Fatal, logfileWithStackTrace, "*");
            NLog.LogManager.Configuration = config;
            _logger = LogManager.GetCurrentClassLogger();
        }