//Licensed Mode
//Log.UserName = "User Name From Receipt";
//Log.LicenseKey = "LicenseKey From Receipt";
//Clear all configuration
Log.ResetConfiguration();
//Add a new target, you can also define targets in an xml file, app.config, or web.config
FileTarget fileTarget = new FileTarget(Environment.CurrentDirectory + "\\fileLogger.txt");
Log.Config.Targets.Add(fileTarget);
//Parameters
string className = "ClassTest";
string methodName = "MethodTest";
//Push a method to the stack for timing purposes
//This is a way of measuring performance for sections or methods
Log.PushMethod(className, methodName);
//Log a normal message
Log.Debug("This is a test");
//Wait a second to show the performance timing
System.Threading.Thread.Sleep(1000);
//Pop a method from the stack for timing purposes
Log.PopMethod(className,methodName);