You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@logging.apache.org by EbenZhang <gi...@git.apache.org> on 2017/09/13 12:20:14 UTC
[GitHub] logging-log4net issue #13: Support combination of roll by size, preserve fil...
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?
---
Re: [GitHub] logging-log4net issue #13: Support combination of roll
by size, preserve fil...
Posted by Dominik Psenner <dp...@gmail.com>.
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?
>
>
>
> ---