"""Logging configuration for {{ project_name }}.

Delegates to Protean's built-in structured logging. Customize by adjusting
the ``configure_logging()`` call below or by adding application-specific
context via ``add_context()``.
"""

from protean.utils.logging import (
    add_context,
    clear_context,
    configure_logging,
    configure_for_testing,
    get_logger,
    log_method_call,
)

# Configure logging with rotating file handlers.
# Remove log_dir to disable file logging (e.g. in containerized deployments).
configure_logging(
    log_dir="logs",
    log_file_prefix="{{ package_name }}",
)

__all__ = [
    "add_context",
    "clear_context",
    "configure_logging",
    "configure_for_testing",
    "get_logger",
    "log_method_call",
]
