Thanks Roman, it is working. Is there a way to directly print using std::cout instead of ngx_log_* functions ? P.S: I'm writing module in C++. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,285729,285731#msg-285731