Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

访问日志功能优化 #237

Closed
Hccake opened this issue Feb 15, 2023 · 0 comments
Closed

访问日志功能优化 #237

Hccake opened this issue Feb 15, 2023 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@Hccake
Copy link
Member

Hccake commented Feb 15, 2023

  1. 日志处理拆分,在放行前和放行后分别添加钩子,方便对于部分耗时较久的请求先打印出简单请求记录,后打印出完整访问日志,也方便分开记录请求和响应。可以参考 org.springframework.web.filter.AbstractRequestLoggingFilter

  2. 添加配置用以控制排除部分 Method 类型请求,比如部分用户不需要记录 OPTION 预检请求,可以通过配置排除

  3. 更方便的控制是否记录请求体与响应体 日志模块记录访问日志,能否考虑接口自定义是否记录访问日志的请求头或返回体 #236

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant