如何在Xamarin中使用Log4Net [英] How to use Log4Net in Xamarin
问题描述
我有一个使用Xamarin MonoTouch的应用程序,我想在其中使用日志记录框架.搜索时,我遇到了常用的Log4Net( http://logging.apache.org/log4net/)库在.Net平台上.我找不到将其集成到我的应用程序中的方法. 从Apache下载dll后,我的应用程序中需要做任何设置吗?我必须编写任何异常或console.writeline消息的代码才能在日志中获取该消息?
I have a app using Xamarin MonoTouch and i want to use logging framework in it. Searching i came across Log4Net (http://logging.apache.org/log4net/) library popularly used on .Net platform. I couldn't find a way to integrate it in my app. Once i download the dll from Apache, is there any setting i have to do in my app? What i have to code with any exception or console.writeline message to get that in log?
还有其他可与Xamarin一起使用的日志记录框架吗?
Is there any other logging framework that can be used with Xamarin?
推荐答案
这是Log4Net的Xamarin/MT友好分支:
Here is a Xamarin/MT friendly fork of Log4Net:
https://github.com/drunkirishcoder/monotouch-log4net
这篇关于如何在Xamarin中使用Log4Net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!