【文件属性】:
文件名称:serilog-aspnetcore-middleware:aspnetcore的中间件,用于使用serilog记录httpcontext数据
文件大小:44KB
文件格式:ZIP
更新时间:2021-04-27 14:36:49
C#
serilog-aspnetcore-中间件·
一个用于aspnetcore的中间件,用于使用serilog记录httpcontext数据。
安装
Install-Package Serilog.Aspnetcore.Middleware
用法示例
public void Configure ( IApplicationBuilder app , IHostingEnvironment env )
{
app . UseHttpContextLogger ();
...
}
每个请求都会有一个日志事件,其中包含所有HttpContext信息,包括请求和响应正文
设定值
很快...
贡献
叉它
创建功能分支( git checkout -b feature/fooBar )
提交更改( git commit -am 'Add some fooBar' )
推送到分支( git
【文件预览】:
serilog-aspnetcore-middleware-master
----.gitignore(5KB)
----src()
--------Serilog.Aspnetcore.Middleware()
----samples()
--------Serilog.Aspnetcore.Middleware.Sample()
----LICENSE(1KB)
----README.md(1KB)
----Serilog.Aspnetcore.Middleware.sln(2KB)