|
|
|
@ -496,9 +496,7 @@ public static class ServiceCollectionExtensions
|
|
|
|
|
ArgumentException.ThrowIfNullOrEmpty(serverUrl);
|
|
|
|
|
var apiKey = configuration["SEQ_APIKEY"] ?? serilogOptions.SeqOptions.Secret;
|
|
|
|
|
ArgumentException.ThrowIfNullOrEmpty(apiKey);
|
|
|
|
|
loggerConfiguration = loggerConfiguration.WriteTo.Seq(
|
|
|
|
|
configuration["SEQ_URL"] ?? serilogOptions.SeqOptions.Address,
|
|
|
|
|
apiKey: configuration["SEQ_APIKEY"] ?? serilogOptions.SeqOptions.Secret);
|
|
|
|
|
loggerConfiguration = loggerConfiguration.WriteTo.Seq(serverUrl, apiKey: apiKey);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Log.Logger = loggerConfiguration.CreateLogger();
|
|
|
|
|