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 3325 posts 11170 karma points MVP 5x 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 3945 posts 15163 karma points MVP 10x 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 3325 posts 11170 karma points MVP 5x 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

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies