-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAppsettings.cs
More file actions
33 lines (30 loc) · 1.09 KB
/
Appsettings.cs
File metadata and controls
33 lines (30 loc) · 1.09 KB
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
30
31
32
33
using System;
namespace LogFileCollector
{
/// <summary>
/// Strongly typed configuration bound from appsettings.json.
/// </summary>
public class AppSettings
{
public string SourceFolder { get; set; }
public string TargetFolder { get; set; }
public string Filter { get; set; }
public bool IncludeSubdirectories { get; set; }
public int FileCreatedDelayMs { get; set; } // default 1000 ms (set in JSON)
public string DatabasePath { get; set; }
public string RenameStrategy { get; set; } // "counter" | "timestamp" | "guid"
public int PeriodicRescanMinutes { get; set; } // 0 = disabled
public LoggingSettings Logging { get; set; }
}
/// <summary>
/// Logging configuration (Serilog)
/// </summary>
public class LoggingSettings
{
public string LogFilePath { get; set; }
public string LogOutputTemplate { get; set; }
public string LogLevel { get; set; }
public string RollingInterval { get; set; }
public int RetainedFileCountLimit { get; set; }
}
}