Replies: 1 comment
-
The sink only does something on the DB during initialization if you set the sink options AutoCreateSqlDatabase or AutoCreateSqlTable. Those options are intended for debugging/testing purposes where an exception should not be a problem. In production you should not set those options and create your DB using a different method. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
the serilog is configured with appsettings. with
configuration.ReadFrom.Configuration(context.Configuration)
. And if databse cannot be connected for any reason.What's the best way to ignore Mssqlserver sink if the database cannot be connected instead of throwing an exception?
Beta Was this translation helpful? Give feedback.
All reactions