/// <summary>
/// Opens logs file
/// </summary>
private static void OpenLog()
{
try
{
var storageFile = GetIsolatedStorageFile();
_storageFileStream = storageFile.OpenFile(_logFileName, FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.ReadWrite | FileShare.Delete);
_storageFileStream.Seek(0, SeekOrigin.End);
_streamWriter = new StreamWriter(_storageFileStream);
_streamWriter.AutoFlush = true;
_isLogFileOpen = true;
}
catch
{
// we fail silently because logging trouble should not affect the end users
}
}