Skip to content

Add custom set of variables to the Unit (error) log #831

Open
@CthulhuDen

Description

@CthulhuDen

Is it possible to specify error log format? I'm using unit with php application and have troubles determining what URL handler triggerred some errors which can not be reliably caught in PHP itself (like memory limit exceeded), and logs currently do not include any details of the request.

I would like to be able to specify format for error log similarly to the access_log.format to include one or many of the variables representing the request context.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions