Skip to content

Rotate logs monthly #293

@srgevs93

Description

@srgevs93

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions