You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use composite configuration as bellow, it works as expected. but once the app restarts, it will report errors such as bellow:
log4net:ERROR RollingFileAppender: INTERNAL ERROR. Append is False but OutputFile [C:\ProgramData\ApplicationLogs\AtlasCopcoACLog\AC.MTC.Server\20241218.1.log] already exists.
the 20240918.1.log will be overrided
<appendername="LocalFilesAppender"type="log4net.Appender.RollingFileAppender">
<filevalue="myfolder"/>
<appendToFilevalue="true" />
<staticLogFileNamevalue="false" />
<DatePatternvalue="yyyyMMdd'.log'"/>
<!--new file will be created per day or the file size >25MB-->
<rollingStylevalue="Composite" />
<!--new file will be created auto once the existing one exceed 25MB-->
<maximumFileSizevalue="25MB" />
<!--not more than 10 files will be kept-->
<maxSizeRollBackupsvalue="10" />
<preserveLogFileNameExtensionvalue="true"/>
<CountDirectionvalue="1" />
<Encodingvalue="UTF-8" />
<layouttype="AC.ICA.Logger.LogContentLayout,AC.ICA.Logger">
<conversionPatternvalue="%date{HH:mm:ss.fff}|%acprop{Level}|%acprop{DeviceName}|%acprop{Logger}|%acprop{Source}|%acprop{Message}%newline"/>
</layout>
</appender>
The text was updated successfully, but these errors were encountered:
I use composite configuration as bellow, it works as expected. but once the app restarts, it will report errors such as bellow:
log4net:ERROR RollingFileAppender: INTERNAL ERROR. Append is False but OutputFile [C:\ProgramData\ApplicationLogs\AtlasCopcoACLog\AC.MTC.Server\20241218.1.log] already exists.
the 20240918.1.log will be overrided
The text was updated successfully, but these errors were encountered: