2

Is there something like the System.Diagnostics.XmlWriterTraceListener Class on WinRT and Windows Phone?

I'd like similar logfiles on every platform, which can be opened using the Microsoft Service Trace Viewer.

Any help would be appreciated.

Florian Baierl
  • 2,378
  • 3
  • 25
  • 50
  • Well you *could* probably write something that writes similar xmls yourself. On the other hand, I think that using xml for logs isn't very good. If there are no magic tricks, I'm not aware of, the complete xml needs to be read and parsed so a node can be added. A simple [File.AppendAllText](http://msdn.microsoft.com/library/vstudio/ms143356.aspx) should perform better. – Corak Aug 30 '13 at 13:05
  • Yes I have thought about writing something that outputs similar log infos myself. If there is no solution with portable class libraries yet we will probably implement one with an extern application to display the output with category search, different colors for different error types, etc. – Florian Baierl Aug 30 '13 at 13:30
  • Now we use log4net-similar schema with our lightweight and custom logger and desktop log4net viewer for these logs. If you prefer Service Trace Viewer, I'd suggest you to be the first and write it. No doubt your logger will be downloading like hot pies from Nuget. ;) – Alex Sorokoletov Dec 23 '13 at 22:14

0 Answers0