litdata
litdata copied to clipboard
Add support for easy logging setup with sensible defaults
🚀 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.stdoutstream - Optional
use_rich=Truefor 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
Hi @bhimrazy I would like to try some contribution on this issue. I've attached my PR with test samples. I hope you can review it when you can
Sure, thanks @sanggusti for opening the PR! I’ll review it shortly.