browser-sdk

Home > @datadog/browser-logs

browser-logs package

Datadog Browser Logs SDK for collecting and forwarding browser logs to Datadog. Provides comprehensive logging capabilities with automatic error tracking and custom log collection.

Classes

Class Description
Logger

Interfaces

Interface Description
Logger Set of convenience methods for each supported log level. All methods accept the same parameters: `message`: human-readable log text. `messageContext`: optional JSON-serialisable object merged with the log context. `error`: optional `Error` instance captured with the log.
LoggerConfiguration
LogsEvent
LogsGlobal
LogsInitConfiguration
LogsMessage Structure passed to the internal log handling strategy.

Variables

Variable Description
datadogLogs The global Logs instance. Use this to call Logs methods.
HandlerType
StatusType

Type Aliases

Type Alias Description
HandlerType
LogsEventDomainContext
StatusType