Home > @datadog/browser-logs > LogsInitConfiguration > beforeSend
Access to every logs collected by the Logs SDK before they are sent to Datadog. It allows: - Enrich your logs with additional context attributes - Modify your logs to modify their content, or redact sensitive sequences (see the list of editable properties) - Discard selected logs
Signature:
beforeSend?: ((event: LogsEvent, context: LogsEventDomainContext) => boolean) | undefined;