Skip to content

Feature Request: LAMA_LOG_FILE env variable. #17601

@darkfibre-nl

Description

@darkfibre-nl

Prerequisites

  • I am running the latest code. Mention the version if possible as well.
  • I carefully followed the README.md.
  • I searched using keywords relevant to my issue to make sure that I am creating a new issue that is not already open (or closed).
  • I reviewed the Discussions, and have a new and useful enhancement to share.

Feature Description

For Docker users who rely on an environment file, it would be helpful if LLAMA_LOG_FILE could be supported in the same way as the other logging options.

Motivation

This would make logging configuration consistent and avoid the need to override command: in docker-compose.yml. At the moment, the llama.cpp server supports several logging options via environment variables (e.g. LLAMA_LOG_VERBOSITY, LLAMA_LOG_PREFIX, LLAMA_LOG_TIMESTAMPS, LLAMA_LOG_COLORS).

However, --log-file only works when passed as a CLI flag and does not appear to have an environment variable equivalent.

Possible Implementation

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions