nginxinc / ngx-rust

Rust binding for NGINX
Apache License 2.0
713 stars 59 forks source link

feat: Add debug log mask support #40

Closed f5yacobucci closed 10 months ago

f5yacobucci commented 12 months ago

NGINX supports multiple debug masks to customize logging.

We use Rust's type system to represent these as an enum and ease a developers usage. They can call the ngx_log_debug_mask with any of the supported enum elements.

To aid in keeping in sync with NGINX primitives a unit test will fail when the current FIRST and LAST log masks do not align any longer.

Checklist

Before creating a PR, run through this checklist and mark each as complete.

f5yacobucci commented 12 months ago

Believe I have everything addressed. Let me know if you're ok and I'll merge.