Skip to content
This repository was archived by the owner on Oct 8, 2025. It is now read-only.
This repository was archived by the owner on Oct 8, 2025. It is now read-only.

per-app access_log #1610

@aiurlano

Description

@aiurlano

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions