예제 #1
0
 static void Main(string[] args)
 {
     EventLogger.GenerateLog(log, "1", LogLevel.Debug, "Default", null);
     log = EventLogger.CreateLogger(@"C:\Temp\NLog\New\");
     LogManager.ReconfigExistingLoggers();
     EventLogger.GenerateLog(log, "2", LogLevel.Debug, "New", null);
     Class1.DoSomething();
     Console.WriteLine("Press ENTER to exit");
     Console.ReadLine();
 }
예제 #2
0
 public static void DoSomething()
 {
     EventLogger.GenerateLog(log, "3", LogLevel.Debug, "Class1.DoSomething", null);
 }