Copied to clipboard

Flag this post as spam?

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


  • Tajamal 87 posts 175 karma points
    Jan 05, 2018 @ 09:31
    Tajamal
    0

    tracelog cleared

    My Umbraco version 7.5.11 assembly: 1.0.6274.27352

    I have noticed a problem that random files older then 24 hours are missing log entries. So my guess is, it must be a bug.

    Logging works fine but next day archived file is truncated and so is umbracoLog table.

    Can anyone help ?

  • Alex Skrypnyk 6182 posts 24284 karma points MVP 8x admin c-trib
    Jan 05, 2018 @ 09:33
    Alex Skrypnyk
    0

    Hi Tajamal

    Can you check please /App_Data/Logs folder, are there files that you need?

    Thanks,

    Alex

  • Tajamal 87 posts 175 karma points
    Jan 05, 2018 @ 09:41
    Tajamal
    0

    Hi Alex

    Files are not missing but log entries are missing.

    Current log entries for today are present in the file and looks fine.

  • Alex Skrypnyk 6182 posts 24284 karma points MVP 8x admin c-trib
    Jan 05, 2018 @ 10:46
    Alex Skrypnyk
    0

    Log entries are in files, are they?

  • Tajamal 87 posts 175 karma points
    Jan 05, 2018 @ 10:55
    Tajamal
    0

    Hi Alex

    Older log files does not have log entries.

  • Tajamal 87 posts 175 karma points
    Jan 08, 2018 @ 10:14
    Tajamal
    0

    Are there any settings that I can set, where do you set any limitations and what are default settings ?

  • Tajamal 87 posts 175 karma points
    Jan 08, 2018 @ 10:21
    Tajamal
    0

    My log4net.config file:

    <log4net>
    
      <root>
        <priority value="Info"/>
        <appender-ref ref="AsynchronousLog4NetAppender" />
      </root>
    
      <appender name="rollingFile" type="log4net.Appender.RollingFileAppender">
          <file type="log4net.Util.PatternString" value="App_Data\Logs\UmbracoTraceLog.%property{log4net:HostName}.txt" />
        <lockingModel type="log4net.Appender.FileAppender+MinimalLock" />
        <appendToFile value="true" />
        <rollingStyle value="Date" />
        <maximumFileSize value="5MB" />
        <layout type="log4net.Layout.PatternLayout">
          <conversionPattern value=" %date [P%property{processId}/D%property{appDomainId}/T%thread] %-5level %logger - %message%newline" />
        </layout>
        <encoding value="utf-8" />
      </appender>
    
      <appender name="AsynchronousLog4NetAppender" type="Umbraco.Core.Logging.ParallelForwardingAppender,Umbraco.Core">
        <appender-ref ref="rollingFile" />
      </appender>
    
      <!--Here you can change the way logging works for certain namespaces  -->
    
      <logger name="NHibernate">
        <level value="WARN" />
      </logger>
    
    
    </log4net>
    
  • Puck Holshuijsen 188 posts 751 karma points
    Oct 29, 2018 @ 15:19
    Puck Holshuijsen
    0

    Hi,

    I am having the exact same issue, with the exact same Umbraco version. Did you find a fix for it?

    Thanks!

    Puck

  • Bo Jacobsen 610 posts 2409 karma points
    Nov 21, 2019 @ 09:27
    Bo Jacobsen
    0

    Hi all.

    We got a similar issue on Umbraco version 7.6.3 assembly: 1.0.6361.21154

    The current day log has everything logged, but when it's being archived, it only contains about 25% of the original content.

    We have been trying to mess around with the log4net settings without luck.

    So i hope someone since 2018 have found a solution :)

  • 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