feat: switching to logging via OpenTelemetry

This commit is contained in:
2025-08-05 15:47:35 +03:00
parent 802acad570
commit 46046d589e
5 changed files with 47 additions and 32 deletions

View File

@@ -9,13 +9,13 @@ public class LogSettings : IIsConfigured
public bool EnableLogToFile { get; set; }
public string? LogFilePath { get; set; }
public string? LogFileName { get; set; }
public string? ApiKeySeq { get; set; }
public string? ApiServerSeq { get; set; }
public string? OpenTelemetryEndpoint { get; set; }
public string? OpenTelemetryServiceName { get; set; }
public bool IsConfigured()
{
return !EnableLogToFile ||
!string.IsNullOrEmpty(LogFilePath) &&
!string.IsNullOrEmpty(LogFileName);
return !EnableLogToFile
|| !string.IsNullOrEmpty(LogFilePath)
&& !string.IsNullOrEmpty(LogFileName);
}
}