Skip to content

Add support for easy logging setup with sensible defaults #685

Description

@bhimrazy

🚀 Feature

Add support for easy logging setup with sensible defaults

Description:
Add a configure_logging utility (like LitServe’s version)

  • Set logging level (default INFO) in init, like in litserve or pytorch lightning.
  • Use clean format and sys.stdout stream
  • Optional use_rich=True for pretty logs
  • Show only important progress/info logs by default; move other logs to DEBUG

Example:

from litdata import configure_logging
configure_logging(level="INFO", use_rich=True)

Benefit: Cleaner, more useful logging out of the box.

cc: @tchaton @deependujha

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions