一、日志类型
Nginx日志类型主要包含两部分:
error_log
access_log
error_log /var/log/nginx/error.log warn;
access_log /var/log/nginx/access.log main; 这个main就是log_format后面的名称
二、日志格式
通过log_format
去配置。
比如默认的如下:
image.png
三、广告
码云点star,万分感谢!
代码已经上传到码云了
https://gitee.com/geekerdream/spring-anonation
通用的权限处理框架
https://gitee.com/geekerdream/common-security
通用的异常处理
https://gitee.com/geekerdream/exception-handler
通用的发送邮件
https://gitee.com/geekerdream/common-boot-email
陆续会推出更多干货,希望关注!
QQ群【Java初学者学习交流群】:458430385
微信公众号【Java码农社区】
image
- 今日头条号:编程界的小学生