The implementation of the RollingFileAppender uses the IDateTime interface to get the current datetime. You can mock that interface.

On 2017-09-13 14:20, EbenZhang wrote:
Github user EbenZhang commented on the issue:

     https://github.com/apache/logging-log4net/pull/13
>What about rolling by date in combination with subdirectories? What if the file should be rolled by date and be placed in a subdirectory that contains the rolling date? Is there a simple way to mock the date in unit test?



---

Reply via email to