-
Hi,
In the project I also use MySqlConnector and would like to use logging as well. I would be very grateful! Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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.) |
Beta Was this translation helpful? Give feedback.
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.)