//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);
//Create an attachment
File.WriteAllText("Test.txt", "This is a test");
//This will log an attachment just to the binary logger
Log.LogAttachment(LoggingLevel.DEBUG, "Test Message", "Test.txt");