public ManualFlushWrapperTest()
 {
     var loggingConfiguration = new LoggingConfiguration();
     debugTarget = new DebugTarget();
     manualFlushTarget = new ManualFlushWrapper
     {
         WrappedTarget = debugTarget
     };
     loggingConfiguration.LoggingRules.Add(new LoggingRule("*", LogLevel.Debug, manualFlushTarget));
     loggingConfiguration.AddTarget("Manual", manualFlushTarget);
     LogManager.Configuration = loggingConfiguration;
 }
Exemple #2
0
        public ManualFlushWrapperTest()
        {
            var loggingConfiguration = new LoggingConfiguration();

            debugTarget       = new DebugTarget();
            manualFlushTarget = new ManualFlushWrapper
            {
                WrappedTarget = debugTarget
            };
            loggingConfiguration.LoggingRules.Add(new LoggingRule("*", LogLevel.Debug, manualFlushTarget));
            loggingConfiguration.AddTarget("Manual", manualFlushTarget);
            LogManager.Configuration = loggingConfiguration;
        }