Spaces:
Sleeping
Sleeping
File size: 1,021 Bytes
cacd4d0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
"""
Centralized Logging Infrastructure for GEPA Optimizer.
This module provides a unified logging system with:
- Structured logging with context
- Consistent formatting across all modules
- Log level configuration
- Operation tracking with timing
- Contextual logging for debugging
Usage:
from gepa_optimizer.infrastructure.logging import get_logger, LogContext
logger = get_logger(__name__)
logger.info("Starting optimization", extra={"iteration": 1})
with LogContext(logger, "evaluation", sample_id=123):
logger.info("Evaluating sample")
"""
from .logger import (
get_logger,
configure_logging,
LogLevel,
GEPA_LOGGER_NAME,
)
from .context import LogContext, log_operation
from .formatters import GepaFormatter, JsonFormatter
__all__ = [
# Core logging
"get_logger",
"configure_logging",
"LogLevel",
"GEPA_LOGGER_NAME",
# Context management
"LogContext",
"log_operation",
# Formatters
"GepaFormatter",
"JsonFormatter",
]
|