AuditTrail.Config (audit_trail v0.1.0)

Copy Markdown

Summary

Functions

Field names whose values get redacted before a log payload ships, regardless of which entry point produced it (ControllerAudit, emit/2, monitor/4's original_record:/params: diffing, schema-level Diff). Matched case-insensitively against both atom and string map keys.

Returns the configured storage adapter.

Functions

actor_extractor()

app_name()

batch_size()

crash_reporting_enabled?()

crash_routing()

dead_letter_redrive_interval()

dedup_max_entries()

dedup_window_ms()

enabled?()

flush_interval()

from_email()

loki_push_url()

loki_read_url()

mailer_adapter()

max_buffer()

max_dead_letter()

partition_count()

sensitive_fields()

Field names whose values get redacted before a log payload ships, regardless of which entry point produced it (ControllerAudit, emit/2, monitor/4's original_record:/params: diffing, schema-level Diff). Matched case-insensitively against both atom and string map keys.

Override entirely (this replaces the defaults, it doesn't add to them — include what you still want redacted):

config :audit_trail, sensitive_fields: ~w(password token my_app_secret)

shipper_retries()

shipper_timeout()

smtp_config()

storage_adapter()

Returns the configured storage adapter.

Can be:

Defaults to AuditTrail.Adapters.Loki.

swoosh_mailer()