You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd love to be able to drop in this sink by adding it to app.config, but I don't think Serilog currently supports nested deserialization (or I haven't been able to make it work).
Would you consider adding an overload to AwsCloudWatchConfigurationExtension.AmazonCloudWatch that takes options and credentials as top-level parameters?
This would allow me to extend my prod app.config file like:
<appSettings>
<!-- Log everything to Stackify for historical debug by DevOps-->
<addkey="serilog:using:Stackify"value="Serilog.Sinks.Stackify" />
<addkey="serilog:write-to:Stackify" />
<addkey="serilog:write-to:Stackify.restrictedToMinimumLevel"value="Debug" />
<!-- Log Fatal errors to CloudWatch for real-time alert distribution e.g. pager duty systems -->
<addkey="serilog:using:AmazonCloudWatch"value="Serilog.Sinks.AwsCloudWatch" />
<addkey="serilog:write-to:AmazonCloudWatch"/>
<addkey="serilog:write-to:AmazonCloudWatch.logGroupName"value="myLogGroup/myEnvironment"/>
<addkey="serilog:write-to:AmazonCloudWatch.minimumLogEventLevel"value="Fatal"/>
<addkey="serilog:write-to:AmazonCloudWatch.awsRegion"value="us-west-1"/>
<addkey="serilog:write-to:AmazonCloudWatch.awsAccessKey"value="*****"/>
<addkey="serilog:write-to:AmazonCloudWatch.awsSecretKey"value="*****"/>
</appSettings>
The text was updated successfully, but these errors were encountered:
I'd love to be able to drop in this sink by adding it to
app.config
, but I don't think Serilog currently supports nested deserialization (or I haven't been able to make it work).Would you consider adding an overload to
AwsCloudWatchConfigurationExtension.AmazonCloudWatch
that takes options and credentials as top-level parameters?This would allow me to extend my prod
app.config
file like:The text was updated successfully, but these errors were encountered: