#!/usr/bin/env python3
"""
Flask Web Server - RSS-Bridge benzeri URL template sistemi
"""
import logging
import sys
from datetime import datetime

# Logging konfigürasyonu
logging.basicConfig(
    level=logging.INFO,
    format='%(asctime)s | %(levelname)-8s | %(name)s | %(message)s',
    datefmt='%Y-%m-%d %H:%M:%S',
    handlers=[
        logging.StreamHandler(sys.stdout)
    ]
)

# Flask ve werkzeug loglarını azalt
logging.getLogger('werkzeug').setLevel(logging.WARNING)
logging.getLogger('flask').setLevel(logging.WARNING)

from src.web_server import app

if __name__ == '__main__':
    logging.info("=" * 60)
    logging.info("YouTube Transcript RSS Feed Generator başlatılıyor...")
    logging.info("=" * 60)
    app.run(host='0.0.0.0', port=5000, debug=False)

