예제 #1
0
        private void StartLogger()
        {
            Log4NetTestLogger.SetNormalLogging();
            Task t = new Task(() =>
            {
                while (true)
                {
                    Application.Current.Dispatcher.Invoke(() => Log4NetTestLogger.PrintText("LogLoglOg"));
                }
            });

            t.Start();
        }
예제 #2
0
 private static void Log4NetAsync()
 {
     Log4NetTestLogger.SetAsyncLogging();
     ThreadedLogging(Log4NetTestLogger.PrintText, "Async Log4Net");
 }
예제 #3
0
 private static void Log4Net()
 {
     Log4NetTestLogger.SetNormalLogging();
     ThreadedLogging(Log4NetTestLogger.PrintText, "Normal Log4Net");
 }