| 123456789101112131415161718192021222324252627282930 |
- # -*- coding: utf-8 -*-
- """
- Strukturiertes Logging-Modul für Trixy.
- Bietet JSON-fähiges Logging mit Korrelations-IDs, Kontext-Propagation
- und verschiedenen Output-Formaten für Enterprise-Observability.
- """
- from trixy_core.utils.logging.context import LogContext, get_correlation_id, set_correlation_id
- from trixy_core.utils.logging.structured import StructuredLogger, get_logger
- from trixy_core.utils.logging.formatters import JSONFormatter, TextFormatter, CompactFormatter
- from trixy_core.utils.logging.handlers import RotatingFileHandler, SyslogHandler, AsyncHandler
- __all__ = [
- # Context
- "LogContext",
- "get_correlation_id",
- "set_correlation_id",
- # Logger
- "StructuredLogger",
- "get_logger",
- # Formatters
- "JSONFormatter",
- "TextFormatter",
- "CompactFormatter",
- # Handlers
- "RotatingFileHandler",
- "SyslogHandler",
- "AsyncHandler",
- ]
|