Home > @datadog/browser-logs > LogsInitConfiguration
Signature:
export interface LogsInitConfiguration extends InitConfiguration
Extends: InitConfiguration
Property | Modifiers | Type | Description |
---|---|---|---|
beforeSend? | ((event: LogsEvent, context: LogsEventDomainContext) => boolean) | undefined | (Optional) 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 | |
forwardConsoleLogs? | ConsoleApiName[] | 'all' | undefined | (Optional) Forward logs from console.\* to Datadog. Use "all" to forward everything or an array of console API names to forward only a subset. | |
forwardErrorsToLogs? | boolean | undefined | (Optional) Forward console.error logs, uncaught exceptions and network errors to Datadog. true | |
forwardReports? | RawReportType[] | 'all' | undefined | (Optional) Forward reports from the Reporting API to Datadog. Use "all" to forward everything or an array of report types to forward only a subset. | |
usePciIntake? | boolean | (Optional) Use PCI-compliant intake. See PCI DSS Compliance for further information. false |