How to enable logging

Dec 29, 2011 at 9:12 AM

Do you have a full example of logging player events to debug console? I added Core:SMFPlayer to my xaml and referenced all SMF assemblies including Microsoft.SilverlightMediaFramework.Logging. But there are no messages in debug console. What additional actions are needed to make it work?

Dec 29, 2011 at 9:15 AM

And I also set LogLevel="All" in xaml...

Dec 29, 2011 at 12:05 PM

OK I got it. In addition to LogLevel you have to set LogWriters="Debug". And I found the example in the source code of the framework which is available here: http://smf.codeplex.com/releases/view/76103#DownloadId=298621. It contains lots of useful sample projects exploiting different features. And it seems that this is the only place where you can learn how to use them! But these samples are not advertised anywhere on this site. Instead the Documentation section contains a couple of lousy tutorials like "how to create a new project". I think you should at least put a link to the source code to the Documentation page. So that developers are able to easily find and run end-to-end examples.