Skip to content

[Feature]: Default CLI log level is DEBUG; WARNING and above go to STDOUT, DEBUG logs to a file #2939

@peterschmidt85

Description

@peterschmidt85

Problem

  1. Currently, users only enable DEBUG logging manually when trying to reproduce an issue. By then, it's often too late.

Solution

  1. Set the default CLI log level to DEBUG
  2. Log messages up to WARNING are printed to STDOUT
  3. Up to DEBUG logs are written to a file~/.dstack/logs/cli/latest.log
  4. Rotate logs every day ~/.dstack/logs/cli/<YYYY-MM-DD>.log

Workaround

No response

Would you like to help us implement this feature by sending a PR?

Yes

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