NET Logging Library
Logging to an Isolated File
Basic Tasks > Logging to an Isolated File

The Isolated File target is used to log to a file in isolated storage. 

 

It has these properties that can be configured:

 

//Example runtime configuration, can also use log.config, app.config, or web.config
Log.ResetConfiguration();   
IsolatedFileTarget target = new IsolatedFileTarget("log.txt");       
Log.Config.Targets.Add(target);

Log.Debug("This is a test");