9. srpna 2012 13:34
How to I write to the Azure tracelog from Silverlight? In the backend web site I can use: System.Diagnostics.Trace.WriteLine but that is not possible from Silverlight.
9. srpna 2012 15:54
Since the silver light is a client side object you cannot use azure diagnostics. For that matter even on premise also any traditional logging you would use cant be used in silverlight.
If you would like to catpure the errors from silver light and want to store that in your server, you need to have a service call to your service which sends the error information to server and log that information whereever you want.
It's not specific to azure, this is the pattern we need to follow to capture the error from silver light.
There is a very good article written in code project. Just refer to it.
Hope it helps
Please mark the replies as Answered if they help and Vote if you found them helpful.
10. srpna 2012 3:07Moderátor
Veerendra is correct, as Silverlight is client-side application, if you want to store something in Windows Azure Diagnostics, you need create a service that hosted in Windows Azure Platform, and the Silverlight application need to access the service to enable Azure Diagnostics.
Here you can find more information about Windows Azure Diagnostics:
- Navržen jako odpověď Veerendra Kumar 10. srpna 2012 4:21
10. srpna 2012 7:53
Thank you for you reply!