39 lines
1.2 KiB
C#
39 lines
1.2 KiB
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Mirea.Api.Dto.Requests.Configuration;
|
|
|
|
/// <summary>
|
|
/// Represents a request to configure logging settings.
|
|
/// </summary>
|
|
public class LoggingRequest
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets a value indicating whether logging to file is enabled.
|
|
/// </summary>
|
|
[Required]
|
|
public bool EnableLogToFile { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the log file name.
|
|
/// </summary>
|
|
public string? LogFileName { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the log file path.
|
|
/// </summary>
|
|
public string? LogFilePath { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the endpoint URL for the OpenTelemetry Collector.
|
|
/// This property specifies the OTLP endpoint to which logs will be sent.
|
|
/// </summary>
|
|
public string? OpenTelemetryEndpoint { get; set; }
|
|
|
|
/// <summary>
|
|
/// 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.
|
|
/// </summary>
|
|
public string? OpenTelemetryServiceName { get; set; }
|
|
|
|
} |