feat serilog日志输出到mysql

This commit is contained in:
2024-01-16 14:23:53 +08:00
parent 1979b7297c
commit 9758f3e4b5
12 changed files with 33 additions and 27 deletions

View File

@@ -17,7 +17,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Kurisu.AspNetCore" Version="0.4.9" />
<PackageReference Include="Kurisu.AspNetCore" Version="0.5.0" />
<PackageReference Include="Microsoft.AspNetCore.DataProtection.StackExchangeRedis" Version="6.0.26" />
</ItemGroup>

View File

@@ -66,10 +66,11 @@
}
},
{
"Name": "File",
"Name": "MySQL",
"Args": {
"path": "log/log.txt",
"rollingInterval": "Hour"
"connectionString": "server=192.168.199.124;port=3306;userid=root;password=dlhis123;database=log;charset=utf8mb4;",
"tableName": "Logs",
"autoCreateSqlTable": true
}
}
]