unit icon indicating copy to clipboard operation
unit copied to clipboard

per-app access_log

Open aiurlano opened this issue 9 months ago • 0 comments

Feature Overview

Hello. I have a configuration with three apps that have similar url paths. Is it possible to add the application name or server port to the access_log format so that it we can tell which app served each request logged in the access_log file?

I am aware per-app logging was recently improved in #197 and this is great for debugging. Adding also per-app access_log would be really helpful.

In my opinion, allowing an "access_log" parameter in the listener configuration blocks that overrides the global setting for that specific application would be optimal. Another viable workaround would be to add $server_port and $server_addr variables to the set we can use in the access_log format specification.

Thanks

Alternatives Considered

No response

Additional Context

No response

aiurlano avatar May 04 '25 17:05 aiurlano