Debugging Nginx apps

| | [C]olor

By default nginx uses buffered logging. This is good for performance because reduces the number of writes to the log file. But I prefer unbuffered logging for debugging:

log_format my_format <format> buffer=0;
access_log <logfile> my_format;

this logs requests instantly which makes it easier to identify problems.