This is a companion discussion topic for the original entry at https://linuxconfig.org/how-to-disable-nginx-logging-on-linux-system
Actually, that works with access_log, but error_log off; writes the log to file named ‘off’. So “error_log /dev/null” does the trick.
acturelly, this is wrong, nging will write log into a file called off
you should redirect access_log to /dev/null