-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRollingPeriod.cs
29 lines (28 loc) · 1.08 KB
/
RollingPeriod.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System;
using System.Collections.Generic;
using System.Text;
namespace Serilog.Sinks.OCEL
{
/// <summary>Defines when to use a new log file, based on the current system time.</summary>
public enum RollingPeriod
{
/// <summary>Uses the file name as is.</summary>
Never,
/// <summary>Prepends yyyy_ to the file name.</summary>
Year,
/// <summary>Prepends yyyy-MM_ to the file name.</summary>
Month,
/// <summary>Prepends yyyy-MM-dd_ to the file name.</summary>
Day,
/// <summary>Prepends weekNumber_ to the file name, using the current culture's calendar.</summary>
Week,
/// <summary>Prepends yyyy-MM-dd_HH_ to the file name.</summary>
Hour,
/// <summary>Prepends yyyy-MM-dd_HH-mm_ to the file name, where mm is either 00 or 30.</summary>
HalfHour,
/// <summary>Prepends yyyy-MM-dd_HH-mm_ to the file name, where mm is 00, 15, 30, or 45.</summary>
QuarterHour,
/// <summary>Prepends yyyy-MM-dd_HH-mm_ to the file name.</summary>
Minute
}
}