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");
fileTarget.Mode = LoggingMode.Asynchronous;
//Add it to the targets
logger.Config.Targets.Add(fileTarget);
//For the file target, this is a non blocking operation, it will be written on a seperate thread
logger.Debug("This is a test");
//Parameters
int maxMillisecondsToWait = 1000;
//Wait a second for it to be written
bool wasFlushedDuringTheWaitTime = logger.Flush(maxMillisecondsToWait);
Console.WriteLine(wasFlushedDuringTheWaitTime);