ok thanks, then probably write to syslog using syslog API's and it seems nginx already supports syslog. Will that work?by astre - Nginx Mailing List - English
Right, actually the question is when I use std::cout nothing gets printed in error_log even when it is set to debug.by astre - Nginx Mailing List - English
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++.by astre - Nginx Mailing List - English
Hi, I trying to print the requested URL path. For that I came across the "uri" member which is of type ngx_str_t) under ngx_http_request_t structure. When I print the "uri" using ngx_log_debug1 (ngx_log_debug1(NGX_LOG_DEBUG_HTTP, log, 0, "%s", r->uri.data)) I see some extra data printed. For eg. when http://localhost/test is requested, "/test HTTP/1.1 Hby astre - Nginx Mailing List - English
Thanks Maxim. I have updated my source to reflect the addon name. It is working. Ill get back once I get deep into auto/module and auto/make :)by astre - Nginx Mailing List - English
Hi All, I have a C++ module developed for apache HTTP which now Im trying to port to Nginx. For this I started reading about creating dynamic modules and specifically c++. I already found ngx_cpp_test_module.cpp in the source and able to compile it. I extended it a little and wrote a hello world program which compiles fine but when I restart Nginx I get following error: $ sudo /usr/sbin/nginby astre - Nginx Mailing List - English