Method AddTsakAdminAudit(IServiceCollection)
Registers the admin audit pipeline:
— the always-present fallback sink (structured
WRN log line, JSON after a [tsak-audit] anchor). — the effective ,
which persists to tsak_audit_log via direct://tsak-audit once
SystemContextBuilder attaches it, and delegates to the log sink until then and
whenever no database is configured. as . — creates the table on startup per provider. — backs GET /api/audit and the retention job.
All registrations are idempotent, so calling this multiple times is safe.
public static IServiceCollection AddTsakAdminAudit(this IServiceCollection services)