Copied to clipboard

Flag this post as spam?

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


  • Jon Dunfee 199 posts 468 karma points
    Aug 03, 2013 @ 05:32
    Jon Dunfee
    0

    File Growth of UmbracoTraceLog.txt in v6

    I have a small team of content contributors putting together a site that isn't live yet and the trace log reaches 40-50meg a day! Is that typical??  How do I shut it off, altogether?

  • Jeavon Leopold 3008 posts 13221 karma points MVP 7x admin c-trib
    Aug 03, 2013 @ 11:29
    Jeavon Leopold
    0

    Hi Jon,

    That is not normal growth, are there exceptions filling it up or is it all info?

    You can configure (or disable) what level of logging is happening by editing /config/log4net.config More info on how to configure log4net http://logging.apache.org/log4net/release/manual/configuration.html For example you can set it to only contain error level or above.

    Thanks,

    Jeavon

  • Jon Dunfee 199 posts 468 karma points
    Aug 04, 2013 @ 15:37
    Jon Dunfee
    0

    I'm still learning Log4Net configuration settings, but I did see setting the priority from default INFO to now WARN and going to see how it fairs.  Using Log4View it's a lot of nHibernate messages and info that stuff is being published, this site has upwards to 5000 nodes.  Perhaps after the site goes live it will simmer down anyway.

  • Kevin Jump 1867 posts 11859 karma points MVP 4x c-trib
    Aug 08, 2013 @ 20:36
    Kevin Jump
    1

    Hi, just been looking at this and in umbraco log4net in umbraco is set to roll on dates not size if you want to limit the logfiles in size, then:

    change rollingStyle to Size or Composite <rollingStyle value="Composite" /> this will cause the log file to roll over when the maximumFileSize is reached (5MB by default).

    adding <maxSizeRollBackups value="5" /> will cause the last 5 versions of the log file to be kept so you can look back on things if you need too.

    e.g.

    <appender name="AsynchronousLog4NetAppender" type="Umbraco.Core.Logging.AsynchronousRollingFileAppender, Umbraco.Core">
            <file value="App_Data\Logs\UmbracoTraceLog.txt" />
            <lockingModel type="log4net.Appender.FileAppender+MinimalLock" />
            <appendToFile value="true" />
            <rollingStyle value="Composite" />
            <maximumFileSize value="5KB" />
        <maxSizeRollBackups value="10" />
            <layout type="log4net.Layout.PatternLayout">
                <conversionPattern value="%date [%thread] %-5level %logger - %message%newline" />
            </layout>
        </appender>
    
  • 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