Info
Version: | 1.0.1 |
Author(s): | pi's Dad |
Last Update: | Tuesday, January 5, 2021 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://gitee.com/zijiaxing/serilog-sinks-mysql |
NuGet Url: | https://www.nuget.org/packages/Serilog.Sinks.MySQL.AspNetCore |
Install
Install-Package Serilog.Sinks.MySQL.AspNetCore
dotnet add package Serilog.Sinks.MySQL.AspNetCore
paket add Serilog.Sinks.MySQL.AspNetCore
Serilog.Sinks.MySQL.AspNetCore Download (Unzip the "nupkg" after downloading)
Dependencies
.NETStandard 1.6
- Microsoft.CSharp(>= 4.5.0)
- MySql.Data(>= 8.0.15)
- NETStandard.Library(>= 1.6.1)
- Newtonsoft.Json(>= 12.0.1)
- Serilog(>= 2.8.0)
- System.Data.Common(>= 4.3.0)
- Microsoft.CSharp(>= 4.5.0)
- MySql.Data(>= 8.0.15)
- Newtonsoft.Json(>= 12.0.1)
- Serilog(>= 2.8.0)
- System.Data.Common(>= 4.3.0)
- Microsoft.CSharp(>= 4.5.0)
- MySql.Data(>= 8.0.15)
- Newtonsoft.Json(>= 12.0.1)
- Serilog(>= 2.8.0)
- System.Data.Common(>= 4.3.0)
- Microsoft.CSharp(>= 4.5.0)
- MySql.Data(>= 8.0.15)
- Newtonsoft.Json(>= 12.0.1)
- Serilog(>= 2.8.0)
- System.Data.Common(>= 4.3.0)
Tags
在https://github.com/saleem-mirza/serilog-sinks-mysql项目基础上,对数据库字段做了如下修改:
1. Timestamp字段类型从原来的varchar改为datetime;
2.
Template字段改为MessageTemplate.