有没有办法配置它,以便它自动删除超过X天的文件?或者目录中的最大文件数量?或者我是否需要创建一个自定义批处理作业来执行此 *** 作?
解决方法 从 Elmah Project Site到 ErrorLogImplementations.(斜体添加强调)XmlErrorLog
The XmlfileErrorLog stores errors into loose XML files in a configurable directory. Each error gets its own file containing all of its details. The files can easily be copIEd around,deleted,compressed or mailed to someone for further diagnostics. It does not require any database engine or setup,like with sql Server and Oracle,so there is very little management overhead and you do not need to worry about additional costs when it comes to hosting plans. Although simple,it relIEs on the file system performance for shredding through the directory,reading files and sorting through them. A smart way of keePing logs based on XmlfileErrorLog running smoothly is to limit the number of files by scheduling a task to periodically archive the old logs and clean up the folder.
您需要创建一个执行此 *** 作的自定义批处理作业.
总结以上是内存溢出为你收集整理的c# – Elmah max日志条目全部内容,希望文章能够帮你解决c# – Elmah max日志条目所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)