Skip to content

Serilog switch from File to Db - Help needed! #1221

Answered by bgrainger
helptiger asked this question in Q&A
Discussion options

You must be logged in to vote

Are you wanting to connect MySqlConnector logging to Serilog, or write all Serilog output to a MySQL database, or both?

To send MySqlConnector logging to Serilog, see https://mysqlconnector.net/overview/logging/#serilog.

To send Serilog logging to a MySQL database, see this project: https://github.com/TeleSoftas/serilog-sinks-mariadb. (Note, I've never used it, but it depends on MySqlConnector, so it seems like the most appropriate choice.)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@helptiger
Comment options

Answer selected by helptiger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1220 on September 15, 2022 14:20.