Skip to content

Logging: the python way #1753

@ei-grad

Description

@ei-grad

Here are some concerns about the current dvc/logger.py usage and implementation:

  1. it doesn't provide the lazy evaluation/formatting for messages which wouldn't be printed due to logging level filter
  2. parse_exception thing in warning is the duplicate of standard exc_info=True behavior
  3. usage of Formatter to colorize the output would make it more clean and customizable
  4. progress_aware should be replaced by custom logging.Handler to make it work with logs coming from other libraries

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions