cloudflare / lua-resty-logger-socket

Raw-socket-based Logger Library for Nginx (based on ngx_lua)
486 stars 130 forks source link

whats wrong with logging in content_by_lua? #44

Closed owenliang closed 6 years ago

owenliang commented 6 years ago

Somebody said that buffered log wont be flush in content_by_lua before it is full, but can be flushed in log_by_lua, What is the difference between them?

agentzh commented 6 years ago

@owenliang No such difference exists at all.

agentzh commented 6 years ago

@owenliang nginx's access log buffering is completely controlled by the buffer parameter of nginx's access_log directive:

http://nginx.org/en/docs/http/ngx_http_log_module.html#access_log