과도한 로그는 없는 것만 못하다. 나의 블로그 error log에 보면 error 항목이 가장 많다. 집과 직장, 기숙사 IP 주소만 allow 상태기 때문에 생긴다. 그래서 이를 줄여보기로 한다. crit 로 뜨는 것이 몇 개 있다. 정확한 이유는 알지 못하지만 너무 오래된 OS나 웹으로 접속할 때 발생하는 것 같다.

Configuring Logging
Capture detailed information about errors and request processing in log files, either locally or via syslog.
NGINX의 로그 레벨은 다음과 같다.
debug, info, notice, warn, error (default), crit, alert, emerg
다음과 같이 crit 이상부터 기록하도록 한다.
error_log /var/log/nginx/error.log crit;