Is there a way to get Log4net to work on Windows Phone 7?

I am a big fan of Apache Log4Net and use it forever. I'm at a loss for bringing this power of logging on to Windows Phone 7.

Do you / can you do this?

How?

+4
source share
4 answers

If there is a version of Silverlight Log4Net, then it should work on Windows Phone 7. You should keep in mind that 100% of your network I / O with Windows Phone 7 will be asynchronous, given that the base environment is Silverlight, so any of the standard calls for Logging to a remote server will not work unless they use Begin / End Response methods.

+1
source

It was recently released that you can check as a starting point.

Silverlight and WP7 exception creation and handling unit

+1
source

This does not help with log4net, but do you consider NLog? NLog 2.0 is in beta and is compatible with Silverlight.

http://nlog-project.org/

NLog 2.0 also supports asynchronous logging.

I did not develop WP7, so I do not know what other considerations exist for entering this environment.

Update: NLog recently announced a beta for Windows Phone 7.

Good luck.

0
source

This may be useful for the Silverlight Analytics platform ( http://msaf.codeplex.com/ ).

Just guess about it, because today I am starting to add MSAF to the application. I know that you can register user records in Google Analytics (although I forgot about the correct terms) and I hope that MSAF will also provide this functionality.

0
source

Source: https://habr.com/ru/post/1333409/


All Articles