WorldRobertProject commented on issue #163:
URL:
https://github.com/apache/logging-log4net/issues/163#issuecomment-2741979323
Now when "DatePattern" is "yyyy-MM-dd", it reproduces the issue.
```
log4net:ERROR RollingFileAppender: INTERNAL ERROR. Append is False but
OutputFile [...\Log\2025-03-21.1.log] already exists.
```
When "DatePattern" is 'yyyy-MM-dd".log"', it causes the following error:
```
log4net:ERROR Could not create Appender [LogFileAppender] of type
[log4net.Appender.RollingFileAppender]. Reported error follows.
System.ArgumentNullException: Value cannot be null. (Parameter 'path1')
at System.ArgumentNullException.Throw(String paramName)
at System.IO.Path.Combine(String path1, String path2)
at log4net.Appender.RollingFileAppender.InitializeFromOneFile(String
baseFile, String curFileName) in
...\logging-log4net\src\log4net\Appender\RollingFileAppender.cs:line 794
at log4net.Appender.RollingFileAppender.InitializeRollBackups(String
baseFile, IList`1 arrayFiles) in
...\logging-log4net\src\log4net\Appender\RollingFileAppender.cs:line 910
at log4net.Appender.RollingFileAppender.DetermineCurSizeRollBackups() in
...\logging-log4net\src\log4net\Appender\RollingFileAppender.cs:line 654
at log4net.Appender.RollingFileAppender.ExistingInit() in
...\logging-log4net\src\log4net\Appender\RollingFileAppender.cs:line 748
at log4net.Appender.RollingFileAppender.ActivateOptions() in
...\logging-log4net\src\log4net\Appender\RollingFileAppender.cs:line 1025
at
log4net.Repository.Hierarchy.XmlHierarchyConfigurator.ParseAppender(XmlElement
appenderElement) in
...\logging-log4net\src\log4net\Repository\Hierarchy\XmlHierarchyConfigurator.cs:line
316
log4net:ERROR Appender named [LogFileAppender] not found.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]