Files
TelegramStickers/utils/log.py
2025-01-29 00:24:44 +03:00

18 lines
410 B
Python

import logging
from rich.logging import RichHandler
def configure_logging():
DATE_FORMAT = '[%d.%m %H:%M:%S]'
LOGGER_FORMAT = '%(asctime)s %(message)s'
logging.basicConfig(
level=logging.INFO,
format=LOGGER_FORMAT,
datefmt=DATE_FORMAT,
handlers=[RichHandler(show_time=False, rich_tracebacks=True)],
)
logging.getLogger('ffmpeg').setLevel(logging.ERROR)