网站首页
编程语言
数据库
系统相关
其他分享
编程问答
requestLog
2024-07-02
NetCore的全局日志记录
Http进来的数据和出去的数据都记录在log中publicclassHttpLoggingMiddleware{privatereadonlyRequestDelegate_next;privatereadonlyILogger<HttpLoggingMiddleware>_logger;publicHttpLoggingMiddleware(RequestDelegatenext,ILogger<HttpLoggingM