diff options
author | Zhidao HONG <z.hong@f5.com> | 2022-07-28 11:05:04 +0800 |
---|---|---|
committer | Zhidao HONG <z.hong@f5.com> | 2022-07-28 11:05:04 +0800 |
commit | 3f8cf62c03a55b9767f0c75b3df6a1a40252b19a (patch) | |
tree | 38c5c687bb348d888c5fb869d038cc21ea47c5f2 /src/nxt_router.h | |
parent | 8761501b4845656a0f2e5c0e7bf98f948c45fb5f (diff) | |
download | unit-3f8cf62c03a55b9767f0c75b3df6a1a40252b19a.tar.gz unit-3f8cf62c03a55b9767f0c75b3df6a1a40252b19a.tar.bz2 |
Log: customizable access log format.
Diffstat (limited to 'src/nxt_router.h')
-rw-r--r-- | src/nxt_router.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nxt_router.h b/src/nxt_router.h index 18fb60b0..a6add219 100644 --- a/src/nxt_router.h +++ b/src/nxt_router.h @@ -53,6 +53,7 @@ typedef struct { nxt_lvlhsh_t apps_hash; nxt_router_access_log_t *access_log; + nxt_var_t *log_format; } nxt_router_conf_t; @@ -223,7 +224,8 @@ typedef struct { struct nxt_router_access_log_s { void (*handler)(nxt_task_t *task, nxt_http_request_t *r, - nxt_router_access_log_t *access_log); + nxt_router_access_log_t *access_log, + nxt_var_t *format); nxt_fd_t fd; nxt_str_t path; uint32_t count; |