using System.ComponentModel.DataAnnotations;
namespace Mirea.Api.Dto.Requests.Configuration;
///
/// Represents a request to configure logging settings.
///
public class LoggingRequest
{
///
/// Gets or sets a value indicating whether logging to file is enabled.
///
[Required]
public bool EnableLogToFile { get; set; }
///
/// Gets or sets the log file name.
///
public string? LogFileName { get; set; }
///
/// Gets or sets the log file path.
///
public string? LogFilePath { get; set; }
///
/// Gets or sets the endpoint URL for the OpenTelemetry Collector.
/// This property specifies the OTLP endpoint to which logs will be sent.
///
public string? OpenTelemetryEndpoint { get; set; }
///
/// Gets or sets the logical service name used for OpenTelemetry logging.
/// This name will be attached to log entries as the "service.name" resource attribute,
/// allowing logs to be grouped and filtered by service in backends like Loki or Grafana.
///
public string? OpenTelemetryServiceName { get; set; }
}