在sitecore中如何设置删除日志的时间限制?

Pra*_*nik 0 sitecore

如果我想在2个月后删除错误日志,我该如何实现呢?我需要编码还是可以直接从sitecore完成?

Ian*_*ham 7

这是关于如何做到这一点的好帖子:

http://kirkegaard-at.blogspot.co.uk/2014/09/cleanupagent-and-log-files.html

您可以调整清理代理上的设置

Sitecore.Tasks.CleanupAgent

此外,您可以在一定时间后归档文件,而不是删除它们.John west在这里有一篇关于如何实现日志文件归档的精彩文章.

https://www.sitecore.net/learn/blogs/technical-blogs/john-west-sitecore-blog/posts/2013/01/cleanup-log-clutter-in-the-sitecore-aspnet-cms.aspx