Skip to content

ccproxy.plugins.access_log.plugin

ccproxy.plugins.access_log.plugin

AccessLogRuntime

AccessLogRuntime(manifest)

Bases: SystemPluginRuntime

Runtime for access log plugin.

Integrates with the Hook system to receive and log events.

Source code in ccproxy/plugins/access_log/plugin.py
def __init__(self, manifest: PluginManifest):
    super().__init__(manifest)
    self.hook: AccessLogHook | None = None
    self.config: AccessLogConfig | None = None

get_hook

get_hook()

Get the hook instance (for testing or manual integration).

Source code in ccproxy/plugins/access_log/plugin.py
def get_hook(self) -> AccessLogHook | None:
    """Get the hook instance (for testing or manual integration)."""
    return self.hook

AccessLogFactory

AccessLogFactory()

Bases: SystemPluginFactory

Factory for access log plugin.

Source code in ccproxy/plugins/access_log/plugin.py
def __init__(self) -> None:
    manifest = PluginManifest(
        name="access_log",
        version="0.1.0",
        description="Simple access logging with Common, Combined, and Structured formats",
        is_provider=False,
        config_class=AccessLogConfig,
        # dependencies=["analytics"], # optional, handled at runtime
    )
    super().__init__(manifest)