Workaround: restarting nginx helps and logs getting generated. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,285708,285709#msg-285709