Sending logs

Overview

The observability plugin automatically sends logs to LaunchDarkly. You can also use recordLog to manually create and send a log record.

You can view all logs sent to LaunchDarkly under Logs in the LaunchDarkly user interface. To learn more, read Logs.

Details about each SDK’s configuration are available in the SDK-specific sections below:

Client-side SDKs

This feature is available in the observability plugin for the following client-side SDKs:

JavaScript

Use recordLog to manually create and send a log record:

Record log
1LDObserve.recordLog('Example log message', Severity.DEBUG);

To learn more, read recordLog.

React Web

To send a log record with the React Web SDK, follow the example for JavaScript.

Vue

To send a log record with the Vue SDK, follow the example for JavaScript.