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

@@ -60,10 +60,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
}
}
]