Skip to content

thedolphin/ngx_http_log_early

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Purpose

This is a patch to ngx_http_log_module, that provides ability to collect logs before request processing. This is useful when you need to collect request data regardless of response, e.g., for statistical purposes. Use in conjunction with syslog transport to gain guaranteed delivery.

Changes in configuration

The option "early" added to log configuration:

access_log /var/log/nginx-access.log early;

Known issues

Early log handler works in NGX_HTTP_POST_READ_PHASE phase in chain with ngx_http_realip_module, and which runs first is generally UB.

About

Log producing in early phase

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published