Hi everyone. Somehow log autoclean doesn't work, though I set in web.config umbracoLogScrubEnabled to true, umbracoLogScrubInterval to 3600 and umbracoLogScrubMaxiumAge to 60. I'm using Umbraco 4.7.0. Is there something else I need to configure?
I did work, but it deletes only rows where logHeader is system or open.
Log.SqlHelper.ExecuteNonQuery("delete from umbracoLog where datestamp < @oldestPermittedLogEntry and logHeader in ('open','system')",new IParameter[] { Log.SqlHelper.CreateParameter("@oldestPermittedLogEntry", dateTime) });
Since I don't want to rebuild bussiness logic dll, I just turned the logging off. Thank you very much for your help, I wouldn't have found where the logging settings are if you hadn't helped me!
Hi denys, I haven't heard of the "umbracoLogScrubEnabled" or "umbracoLogScrubInterval" settings before either - like @dawoe I had to look through the core source-code to confirm ... but I couldn't see any reference to them in the v4.7.1 codebase. Where did you hear about those specific config settings?
@dawoe - thanks for pointing out the "autoCleanLogs" (and other) settings - wasn't aware of those too ... good to know of those!
UmbracoLog won't autoclean
Hi everyone. Somehow log autoclean doesn't work, though I set in web.config umbracoLogScrubEnabled to true, umbracoLogScrubInterval to 3600 and umbracoLogScrubMaxiumAge to 60. I'm using Umbraco 4.7.0. Is there something else I need to configure?
I really need help with this.
Thanks in advance.
Because I never heard of these settings I had a look at the source code.
You should have these settings in the umbracoSettings.config file in the logging section
autoCleanLogs
cleaningMiliseconds
maxLogAge
Let me know if it works
I did work, but it deletes only rows where logHeader is system or open.
Log.SqlHelper.ExecuteNonQuery("delete from umbracoLog where datestamp < @oldestPermittedLogEntry and logHeader in ('open','system')", new IParameter[]
{
Log.SqlHelper.CreateParameter("@oldestPermittedLogEntry", dateTime)
});
Since I don't want to rebuild bussiness logic dll, I just turned the logging off. Thank you very much for your help, I wouldn't have found where the logging settings are if you hadn't helped me!
Hi denys, I haven't heard of the "umbracoLogScrubEnabled" or "umbracoLogScrubInterval" settings before either - like @dawoe I had to look through the core source-code to confirm ... but I couldn't see any reference to them in the v4.7.1 codebase. Where did you hear about those specific config settings?
@dawoe - thanks for pointing out the "autoCleanLogs" (and other) settings - wasn't aware of those too ... good to know of those!
Thanks, Lee.
@Lee,
Seems I discovered a hidden gem :-)
Hi Lee, I found those settings here: http://umbraco.codeplex.com/workitem/14803
is working on a reply...