| | | 1 | | namespace ArturRios.Logging.Configuration; |
| | | 2 | | |
| | | 3 | | /// <summary> |
| | | 4 | | /// Configuration settings for file-based logger. |
| | | 5 | | /// </summary> |
| | | 6 | | public class FileLoggerConfiguration : LoggerConfiguration |
| | | 7 | | { |
| | | 8 | | /// <summary> |
| | | 9 | | /// Gets or sets the application name used in log file names. |
| | | 10 | | /// </summary> |
| | 104 | 11 | | public required string ApplicationName { get; set; } |
| | | 12 | | |
| | | 13 | | /// <summary> |
| | | 14 | | /// Gets or sets the folder scheme for organizing log files. |
| | | 15 | | /// </summary> |
| | 157 | 16 | | public LogFolderScheme FolderScheme { get; set; } = LogFolderScheme.ByMonth; |
| | | 17 | | |
| | | 18 | | /// <summary> |
| | | 19 | | /// Gets or sets the level at which to split log files. |
| | | 20 | | /// </summary> |
| | 157 | 21 | | public LogSplitLevel FileSplitLevel { get; set; } = LogSplitLevel.Day; |
| | | 22 | | |
| | | 23 | | /// <summary> |
| | | 24 | | /// Gets or sets the base file path for log files. If null, defaults to a 'log' folder in the application directory. |
| | | 25 | | /// </summary> |
| | 103 | 26 | | public string? FilePath { get; set; } |
| | | 27 | | } |