August 17, 2013

NLog in WP7

Does anyone use the NLog successfully in WP7?

I googled a lot, finally I cannot add an extension to the NLog. So I add the IsolatedStorageTarget to the dll, and compile it. And it successfully worked.

What I do?

1. add the following codes to the target folder:


2. Add the NLog.config:



3. Add the codes to your cs file that you want to use:


that is all of the steps you need to do.

If you want the compiled dll, you can download from link. If the link is not available, please comment under the article.

Hi blogger

Hi everyone, this is the first time I arrived blogger, I like it very much. I`m a Chinese man, I`d like to make friends with us. Even though, my English communication is not so good, but I have the confidence to do it in a better way. In this new home, I`ll write some tech-articles if I met an issue and solved it successfully and share others blogger articles.

Thanks!