title: Commands to get offline logs from wp7 using WPConnect?
body: <p>I know that we can get offline logs from WP7 devices using WPConnect tool. But i have forgotten the commands and also forgotten the site address from where i had learnt it. Does anyone know what are those commands. I have the following code to log offline exceptions, but i don't know how to retrieve the log file.. Please help.</p>
  
  <pre><code>  #region Offline Error Logger
      /// &lt;summary&gt;
      /// Logs Exception for the app when the device is not connected to the PC.This file can later be retrieved for the purpose of Bug fixing 
      /// &lt;/summary&gt;
      /// &lt;param name="strMsg"&gt;Exception message&lt;/param&gt;
      private static void LogOffline(string strMsg)
      {
  </code></pre>
  
  <h1>if LOG_ENABLED</h1>
  
  <pre><code>        try
          {
              using (IsolatedStorageFile myIsolatedStorage = IsolatedStorageFile.GetUserStoreForApplication())
              {
                  string dirName = "SOSLog";
                  string logFileName = "SOSLog.txt";
                  string fullLogFileName = System.IO.Path.Combine(dirName, logFileName);
                  // TODO: Synchronize this method with MainPage using Mutex
                  string directoryName = System.IO.Path.GetDirectoryName(fullLogFileName);
                  if (!string.IsNullOrEmpty(directoryName) &amp;&amp; !myIsolatedStorage.DirectoryExists(directoryName))
                  {
                      myIsolatedStorage.CreateDirectory(directoryName);
                      Debug.WriteLine("Created directory");
                  }
                  if (myIsolatedStorage.FileExists(fullLogFileName))
                  {
                      using (IsolatedStorageFileStream fileStream =
                              myIsolatedStorage.OpenFile(fullLogFileName, FileMode.Append, FileAccess.Write))
                      {
                          using (StreamWriter writer = new StreamWriter(fileStream))
                          {
                              writer.WriteLine(strMsg);
                              writer.Close();
                          }
                      }
                  }
                  else
                  {
                      using (IsolatedStorageFileStream fileStream =
                              myIsolatedStorage.OpenFile(fullLogFileName, FileMode.Create, FileAccess.Write))
                      {
                          using (StreamWriter writer = new StreamWriter(fileStream))
                          {
                              writer.WriteLine(strMsg);
                              writer.Close();
                          }
                      }
                  }
              }
          }
          catch (Exception ex)
          {
              Debug.WriteLine("Exception while logging: " + ex.StackTrace);
          }
  </code></pre>
  
  <h1>endif</h1>
  
  <pre><code>    }
      #endregion
  </code></pre>