Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot use Trace.WriteLine in Windows Store App

In Windows Store application I can use:

System.Diagnostics.Debug.WriteLine("Test");

But replacing Debug with Trace gives the following error: CS0103: The name 'Trace' does not exist in the current context How can I fix this?

like image 870
Alex F Avatar asked May 13 '13 12:05

Alex F


1 Answers

WinRT doesn't have Trace, and it lacks trace listeners. Debug.WriteLine is the best you can do without resorting to something 3rd party like metrolog.

like image 187
vcsjones Avatar answered Oct 17 '22 00:10

vcsjones