| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- # -*- 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
- from trixy_core.utils.logging.file_router import (
- FileLogRouter,
- init_file_router,
- shutdown_file_router,
- log_as,
- get_file_router,
- )
- __all__ = [
- # Context
- "LogContext",
- "get_correlation_id",
- "set_correlation_id",
- # Logger
- "StructuredLogger",
- "get_logger",
- # Formatters
- "JSONFormatter",
- "TextFormatter",
- "CompactFormatter",
- # Handlers
- "RotatingFileHandler",
- "SyslogHandler",
- "AsyncHandler",
- # File Router
- "FileLogRouter",
- "init_file_router",
- "shutdown_file_router",
- "log_as",
- "get_file_router",
- ]
|