Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • denys 6 posts 27 karma points
    Nov 22, 2011 @ 10:28
    denys
    0

    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.

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Nov 22, 2011 @ 10:35
    Dave Woestenborghs
    2

    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

  • denys 6 posts 27 karma points
    Nov 22, 2011 @ 12:06
    denys
    1

    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!

     

     

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Nov 23, 2011 @ 13:26
    Lee Kelleher
    0

    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.

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Nov 23, 2011 @ 16:18
    Dave Woestenborghs
    0

    @Lee,

    Seems I discovered a hidden gem :-)

  • denys 6 posts 27 karma points
    Nov 25, 2011 @ 16:01
    denys
    0

    Hi Lee, I found those settings here: http://umbraco.codeplex.com/workitem/14803

Please Sign in or register to post replies

Write your reply to:

Draft