Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🎨 Refactor the logging module monolith #3319

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions acapy_agent/config/logging/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
from .base import (
DEFAULT_LOGGING_CONFIG_PATH_INI,
DEFAULT_MULTITENANT_LOGGING_CONFIG_PATH_INI,
LOG_FORMAT_FILE_ALIAS_PATTERN,
)
from .configurator import LoggingConfigurator, load_resource, fileConfig
from .filters import ContextFilter, context_wallet_id
from .timed_rotating_file_multi_process_handler import (
TimedRotatingFileMultiProcessHandler,
)

__all__ = [
"DEFAULT_LOGGING_CONFIG_PATH_INI",
"DEFAULT_MULTITENANT_LOGGING_CONFIG_PATH_INI",
"LOG_FORMAT_FILE_ALIAS_PATTERN",
"LoggingConfigurator",
"load_resource",
"fileConfig",
"ContextFilter",
"context_wallet_id",
"TimedRotatingFileMultiProcessHandler",
]
9 changes: 9 additions & 0 deletions acapy_agent/config/logging/base.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
"""Base configurations and constants for logging."""

DEFAULT_LOGGING_CONFIG_PATH_INI = "acapy_agent.config.logging:default_logging_config.ini"
DEFAULT_MULTITENANT_LOGGING_CONFIG_PATH_INI = (
"acapy_agent.config.logging:default_multitenant_logging_config.ini"
)
LOG_FORMAT_FILE_ALIAS_PATTERN = (
"%(asctime)s %(wallet_id)s %(levelname)s %(pathname)s:%(lineno)d %(message)s"
)
Loading
Loading