is there a solution to make the log files be created each week by RollingFileAppender's datePattern? I know that yyyyMMdd is valid for each day but i couldn't find a solution for weekly logging. thanks in advance.
As far as I can tell you need to write your own appender for this. The .Net custom format strings do not have anything for getting the calendar week. There is an API for that though:
http://msdn.microsoft.com/en-us/library/system.globalization.calendar.getweekofyear%28VS.71%29.aspx
来源:https://stackoverflow.com/questions/3387075/logging-each-week-via-rollingfileappender-log4net