Skip to content

--log-file is overwritten by default #318

@9999years

Description

@9999years

I have $PC_LOG_FILE set to write process-compose logs to a file.

This works well, except that process-compose truncates the file when opening it by default.

I'll usually run process-compose --detached, which logs to the file correctly, but then if I run process-compose list --output wide, it will overwrite the log file, which often contains useful data!

E.g. here's the whole log file, missing previous data:

$ command cat .pc/logs/process-compose.log
25-04-02 11:51:41.514 INF Process Compose v1.46.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationstale

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions