from datetime import datetime
import logging

# Setup basic logging configuration
logging.basicConfig(
    level=logging.DEBUG,
    format="%(asctime)s %(levelname)s::%(thread)d::%(pathname)s:%(lineno)d:%(funcName)s:%(message)s",
    datefmt="%Y-%m-%d %H:%M:%S",
    filename=f'logs/application_{datetime.now().strftime("%Y-%m-%d_%H-%M-%S")}.log',
    filemode="w",
)
