Hi. Tried to enable log rotation by months using
<log mode="roll-by-time"> <pattern>yyyyMM</pattern> </log>
and started process with -test flag.
Got exception (see below). What can i do to make this work?
Unhandled Exception: Unhandled Exception: System.Exception: invalid periodicity type: ERRONEOUS at winsw.PeriodicRollingCalendar.nextTriggeringTime(DateTime input, Int64 increment) at winsw.PeriodicRollingCalendar.init() at winsw.TimeBasedRollingLogAppender.CopyStreamWithDateRotation(Stream data, String ext) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() System.Exception: invalid periodicity type: ERRONEOUS at winsw.PeriodicRollingCalendar.nextTriggeringTime(DateTime input, Int64 increment) at winsw.PeriodicRollingCalendar.init() at winsw.TimeBasedRollingLogAppender.CopyStreamWithDateRotation(Stream data, String ext) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart()
Hi. Tried to enable log rotation by months using
<log mode="roll-by-time"> <pattern>yyyyMM</pattern> </log>and started process with
-testflag.Got exception (see below). What can i do to make this work?
Unhandled Exception: Unhandled Exception: System.Exception: invalid periodicity type: ERRONEOUS at winsw.PeriodicRollingCalendar.nextTriggeringTime(DateTime input, Int64 increment) at winsw.PeriodicRollingCalendar.init() at winsw.TimeBasedRollingLogAppender.CopyStreamWithDateRotation(Stream data, String ext) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() System.Exception: invalid periodicity type: ERRONEOUS at winsw.PeriodicRollingCalendar.nextTriggeringTime(DateTime input, Int64 increment) at winsw.PeriodicRollingCalendar.init() at winsw.TimeBasedRollingLogAppender.CopyStreamWithDateRotation(Stream data, String ext) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart()