14-06-2026 2nd commit

This commit is contained in:
Ankit Malik
2026-06-15 13:52:24 +05:30
parent 166a2a1d19
commit e77941c23d
10 changed files with 2844 additions and 772 deletions
+24
View File
@@ -0,0 +1,24 @@
from pathlib import Path
from datetime import datetime
import logging
# Create logs folder if it doesn't exist
Path("logs").mkdir(exist_ok=True)
# Daily log file
log_file = Path("logs") / f"etl_{datetime.now():%Y%m%d}.log"
# Configure logging
logging.basicConfig(
level=logging.INFO,
format="%(asctime)s | %(levelname)-8s | %(message)s",
datefmt="%Y-%m-%d %H:%M:%S",
handlers=[
logging.StreamHandler(),
logging.FileHandler(log_file, encoding="utf-8"),
],
)
# Export logger
log = logging.getLogger("etl")