Silverlight:Log4Net到隔离存储 [英] Silverlight: Log4Net to Isolated Storage
问题描述
首先,我了解 Clog ,并且我不想实现这一部分.原因?我们无法维护严重的日志记录框架".
First, I know about Clog, and I do not want to implement this piece. The reason? We can't maintain severeal logging 'frameworks'.
所以我的问题是
是否可以在Silverlight应用程序中实现 log4net ?我要实现的是登录到隔离存储.我知道,只有1 MB的可用存储空间,但是可以增加此限制(我也知道用户必须接受). 顺便说一句,请不要为我提供其他选择.我只想知道是否有人实现了 log4net来隔离存储.
Is it possible to implement log4net in a Silverlight application? What I want to achieve is logging to the Isolated Storage. I know, there's only 1 MB of storage available, but this limit can be increased (the user has to accept this, I know too). By the way, please don't provide me alternatives. I do only want to know if somebody implemented a log4net to isolated storage.
推荐答案
我无法想象这是可能的.您将必须下载log4net源,并尝试针对silverlight运行时进行编译.我想也许可以对部分代码进行改编,并使其在Silverlight中构建,但这听起来像许多艰苦的工作.推出自己的解决方案或使用CLog(whoops)可能更好.
I cannot imagine that it is possible. You would have to download the log4net source and try to compile it against the silverlight runtime. I suppose it may be possible to adapt parts of the code and make it build in silverlight, but that sounds like a lot of hard work. You are probably better off rolling your own solution, or using CLog (whoops).
这篇关于Silverlight:Log4Net到隔离存储的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!