- 配置的语法格式:error_log 文件位置 级别
- 可以放置的上下文位置:main, http, mail, stream, server, location
- 级别包括:debug, info, notice, warn, error, crit, alert, emerg
用法例子:
[root@localhost conf]# cat nginx.conf
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;