samithcs's picture
Add Chainlit app files (Dockerfile, app.py, requirements.txt, src) and update README
1eaee2c
raw
history blame contribute delete
306 Bytes
import logging
import os
os.makedirs('artifacts/logs', exist_ok=True)
logging.basicConfig(
level=logging.INFO,
format='%(asctime)s - %(levelname)s - %(message)s',
handlers=[
logging.FileHandler(os.path.join('artifacts', 'logs', 'logfile.txt')),
logging.StreamHandler()
]
)