//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);
//Create a test DataTable
DataTable table = new DataTable();
//Add columns
table.Columns.Add("CustomerID", typeof(int));
table.Columns.Add("CustomerName", typeof(string));
table.Columns.Add("Country", typeof(string));
//Add row to table
table.Rows.Add(new object[] { 1, "Bat Man", "England" });
table.Rows.Add(new object[] { 2, "Cat Woman", "US" });
//Log datatable to log
Log.LogDataTable(LoggingLevel.DEBUG, table, 2);