File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ """Main entry point for the application."""
2+
13from src .config .env import APP_STAGE , ENV_PATH
24from src .utils .logging import setup_logging
35
46
57def main () -> None :
8+ """
9+ Main entry point for the application.
10+
11+ Initializes logging, logs the application start,
12+ current stage, and the path from which environment variables are loaded.
13+ """
14+
615 logger = setup_logging ()
716 logger .info ("Starting the application..." )
817 logger .info (f"App stage: { APP_STAGE } " )
Original file line number Diff line number Diff line change 1+ """Environment configuration module for loading environment variables."""
2+
13import os
24from pathlib import Path
35from typing import Final
Original file line number Diff line number Diff line change 1+ """Factory module."""
Original file line number Diff line number Diff line change 1+ """Configuration constants for logging setup."""
2+
13from logging import INFO
24from typing import Final
35
Original file line number Diff line number Diff line change 1+ """Setup logging utilities for the application."""
2+
13import logging
24import sys
35
810
911
1012def setup_logging () -> logging .Logger :
13+ """Set up and configure logging for the application.
14+
15+ Returns:
16+ logging.Logger: Configured root logger.
17+ """
18+
1119 # Create a logger
1220 logger = logging .getLogger ()
1321 logger .setLevel (level = DEFAULT_LOGGING_LEVEL )
You can’t perform that action at this time.
0 commit comments