//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
BinaryFileTarget fileTarget = new BinaryFileTarget("fileLogger.bin");
Log.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
Log.LogAttachment(LoggingLevel.DEBUG, "Test Message", "Test.txt", stream);