Copied to clipboard

Flag this post as spam?

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


  • Tajamal 62 posts 150 karma points
    Jan 05, 2018 @ 09:31
    Tajamal
    0

    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 5367 posts 19806 karma points MVP 3x 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 62 posts 150 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 5367 posts 19806 karma points MVP 3x admin c-trib
    Jan 05, 2018 @ 10:46
    Alex Skrypnyk
    0

    Log entries are in files, are they?

  • Tajamal 62 posts 150 karma points
    Jan 05, 2018 @ 10:55
    Tajamal
    0

    Hi Alex

    Older log files does not have log entries.

  • Tajamal 62 posts 150 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 62 posts 150 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 90 posts 352 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

Please Sign in or register to post replies

Write your reply to:

Draft