namespace MyNewProjectName.Infrastructure.Options;
///
/// Serilog logging configuration options
///
public class SerilogOptions
{
public const string SectionName = "Serilog";
///
/// Minimum log level
///
public string MinimumLevel { get; set; } = "Information";
///
/// Override log levels for specific namespaces
///
public Dictionary Override { get; set; } = new();
///
/// Write to console
///
public bool WriteToConsole { get; set; } = true;
///
/// Write to file
///
public bool WriteToFile { get; set; } = true;
///
/// File path for logs (relative to application root)
///
public string FilePath { get; set; } = "logs/log-.txt";
///
/// Rolling interval for log files
///
public string RollingInterval { get; set; } = "Day";
///
/// Retained file count limit
///
public int RetainedFileCountLimit { get; set; } = 31;
///
/// Seq server URL (optional)
///
public string? SeqUrl { get; set; }
///
/// Elasticsearch URL (optional)
///
public string? ElasticsearchUrl { get; set; }
}