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
BinaryFileTarget fileTarget = new BinaryFileTarget("fileLogger.bin");
logger.Config.Targets.Add(fileTarget);
MemoryStream stream = new MemoryStream();
byte[] bytes = UTF8Encoding.UTF8.GetBytes("This is a test");
stream.Write(bytes, 0, bytes.Length);
stream.Seek(0, SeekOrigin.Begin);
//This will stream an attachment just to the binary logger
logger.LogAttachment(LoggingLevel.DEBUG, "Test Message", "Test.txt", stream);