chudin26
chudin26

Reputation: 1172

How to save logs in Windows Phone 8

I want to read logs from the output window in WP8. If i run windows phone application on Visual Studio, i see logs in output window. But if i run application on windows phone without Visual Studio, i cannot see logs. And i can't read this logs. I don't want to write my own logging system, I want to read the data from OUTPUT. And i want to read this data in Release configuration.

I tried to redirect Console.Out to a file, but it still not work. System.Diagnostics.Debug.WriteLine doesn't work in Release Configuration.

Any suggestions?

Upvotes: 0

Views: 697

Answers (3)

Raghu
Raghu

Reputation: 1

In fact it works.

Steps to follow :

  1. Goto Project properties.
  2. Select the "Build" option in the right pane.

  3. Choose "Release" option from the dropdown box of Configuration.

  4. Under "General" section below in the same "Build" pane select checkboxes.


    • Define TRACE constant & Define DEBUG constant

  1. Close the Project properties.

Next goto "Tools" menu

  1. Select "Options" at the end of menu.
  2. In the "Options" dialog > Expand Debugging branch
  3. Select "General"
  4. Unselect "Enable Just My Code" checkbox.

Now either deploy to device or run in the emulator.

Upvotes: 0

vITs
vITs

Reputation: 1560

The only solution is to write your logs to IsolatedStorage. If you are not willing to do so,click the link below you can use it directly:

http://wpclogger.codeplex.com/downloads/get/374016

Upvotes: 1

ngvntoan
ngvntoan

Reputation: 82

I think you should write logs to files(.txt,..) to Isolated Storage and load it if you want to read detail.

Upvotes: 0

Related Questions