ConcreteLog logger = new ConcreteLog();
//Licensed Mode
//logger.UserName = "User Name From Receipt";
//logger.LicenseKey = "LicenseKey From Receipt";
//Clear all configuration
logger.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");
logger.Config.Targets.Add(fileTarget);
//Create a test DataSet
DataSet dataset = new DataSet();
//Create a test DataTable
DataTable table1 = new DataTable();
//Add columns
table1.Columns.Add("CustomerID", typeof(int));
table1.Columns.Add("CustomerName", typeof(string));
table1.Columns.Add("Country", typeof(string));
//Add row to table
table1.Rows.Add(new object[] { 1, "Bat Man", "England" });
table1.Rows.Add(new object[] { 2, "Cat Woman", "US" });
dataset.Tables.Add(table1);
//Create a test DataTable
DataTable table2 = new DataTable();
//Add columns
table2.Columns.Add("EmployeeID", typeof(int));
table2.Columns.Add("EmployeeName", typeof(string));
table2.Columns.Add("Country", typeof(string));
//Add row to table
table2.Rows.Add(new object[] { 1, "Employee 1", "England" });
table2.Rows.Add(new object[] { 2, "Employee 2", "US" });
dataset.Tables.Add(table2);
//Log DataSet to log
logger.LogDataSet(LoggingLevel.DEBUG, dataset, 10);