Documentation · Directives · API · Execution model · Security · Examples · Compatibility
| OpenResty API | RustScript callable | Status | Phases | Yield | Limits | Semantic differences | Acceptance |
|---|---|---|---|---|---|---|---|
ngx.log |
ngx::log(level: int, message: string) -> () |
adapted | PHASE_ALL |
sync | level NGX_LOG_STDERR..=NGX_LOG_DEBUG; no embedded NUL |
Single string, not varargs. Request log when a request execution scope is live and allows LOG; otherwise cycle log; error if neither. Prefix ngx-rustscript: . No global print. |
tests/ngx_meta.rs (log_*), tests/access_nginx.rs (access_phase_logs_*, access_phase_rejects_invalid_log_level_and_embedded_nul), tests/log_nginx.rs |
See also: API index · Phase sets · Cross-cutting adaptations · Hard caps