Right, actually the question is when I use std::cout nothing gets printed in error_log even when it is set to debug. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,285729,285733#msg-285733