# serilog-sinks-mysql **Repository Path**: zijiaxing/serilog-sinks-mysql ## Basic Information - **Project Name**: serilog-sinks-mysql - **Description**: No description available - **Primary Language**: C# - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-01-04 - **Last Updated**: 2021-01-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Serilog.Sinks.MySQL Serilog sink that writes to MySQL database. 在https://github.com/saleem-mirza/serilog-sinks-mysql项目基础上,对数据库字段做了如下修改: 1. Timestamp字段类型从原来的varchar改为datetime; 2. Template字段改为MessageTemplate Install-Package Serilog.Settings.Configuration In your appsettings.json file: ```JSON { "Name": "MySQL", "Args": { "connectionString": "Server=localhost;Database=LogTest;Uid=root;Pwd=123456;", "tableName": "log" } } ```