| 38 | |
| 39 | @dataclass |
| 40 | class ServiceConfig: |
| 41 | name: str |
| 42 | command: List[str] |
| 43 | port: int |
| 44 | cwd: Optional[str] = None |
| 45 | env: Optional[Dict[str, str]] = None |
| 46 | health_check_path: str = "/health" |
| 47 | startup_delay: int = 2 |
| 48 | required: bool = True |
| 49 | |
| 50 | class ColoredFormatter(logging.Formatter): |
| 51 | """Custom formatter with colors for different log levels and services.""" |
no outgoing calls
no test coverage detected