VidTune-Gradio / logger.py
animikhaich's picture
Added: Video Descriptor and UI Boilerplate
5978ae3
raw
history blame contribute delete
279 Bytes
import logging
FORMAT = "%(asctime)s: %(levelname)s: %(message)s"
logging.basicConfig(filename='logs.log', level=logging.INFO, format=FORMAT)
STDERRLOGGER = logging.StreamHandler()
STDERRLOGGER.setFormatter(logging.Formatter(FORMAT))
logging.getLogger().addHandler(STDERRLOGGER)