openai-file-chat / mylib /_logging.py
jerome-white's picture
Initial commit
ef3d4ad
raw
history blame contribute delete
278 Bytes
import os
import logging
#
#
#
logging.basicConfig(
format='[ %(asctime)s %(levelname)s %(filename)s ] %(message)s',
datefmt='%H:%M:%S',
level=os.environ.get('PYTHONLOGLEVEL', 'WARNING').upper(),
)
logging.captureWarnings(True)
Logger = logging.getLogger(__name__)