feat: switching to logging via OpenTelemetry
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user