Skip to main content

Module audit_export

Module audit_export 

Source
Expand description

Export the audit_log SQLite table in four formats with matching hash sidecars.

Produces four files under a caller-chosen directory, each named audit-<UTC>.ext where <UTC> is %Y-%m-%dT%H-%M-%SZ:

FormatExtensionBuilder
JSON.jsonserde_json::to_vec_pretty
CSV.csvhand-rolled RFC 4180 writer
SARIF.sarifhand-rolled SARIF 2.1.0 via serde
Markdown.mdhand-rolled GFM table

For each payload the three hash sidecars mandated by CLAUDE.md (.sha-256, .sha-512, .sha3-512) are emitted via crate::sidecar::write_sidecar_files_for, controlled by the matching Settings.sidecar_* toggles.

Structs§

AuditExportOptions
Which formats to emit on an audit-log export.
AuditExportResult
Result of an export_audit_log call.

Functions§

export_audit_log
Export the audit log from the supplied sqlite pool.