Debug, Info, Warn, and Error.

The Logs tab with a query in the query builder.

A detailed view of a log entry.
Get started
To instrument your application to capture logs, read the documentation on Observability SDKs. The functionality is available through plugins to the LaunchDarkly JavaScript . The Logs tab lists the logs from your application. Click Observability > Explore in the left sidebar, then click the Logs tab.Correlate logs with traces
When a log record arrives with trace context attached, LaunchDarkly records itstrace_id and span_id so the log links to the trace and errors it belongs to.
If you send logs from services instrumented with Datadog, LaunchDarkly reads the Datadog trace context from each log and populates these fields for you. To learn more, read Datadog Agent ingestion.
Search
To search the Logs tab, use the query builder. To learn more, read Search specification. A search term without a key matches the log message. A quoted phrase matches the first and last words of the phrase as whole words. This means that"recovered panic" does not match the message unrecovered panicky. To learn more, read Log message search.
Search attributes
By default, the observability SDK plugin automatically injects the following attributes to provide additional help with searching for logs:| Category | Attribute | Description | Example |
|---|---|---|---|
feature_flag | Specifies whether the session is associated with a feature flag. You can refine results with the following additional attributes: context.id, contextKeys, key, provider.name, result.reason.inExperiment, result.reason.kind, result.value, and set.id. | true | |
| Log properties | code.filepath | File path emitting the log. | /build/backend/worker/worker.go |
code.function | Function emitting the log. | github.com/acme-org/acme/backend/worker.(*Worker).Start.func3 | |
code.lineno | Line number of the file where the log was emitted. | 20 | |
level | The log level. | info | |
message | The log message. | public-graph graphql request failed | |
span_id | ID that contains this log. | 528a54addf6f91cc | |
trace_id | ID that contains this log. | 7654ff38c4631d5a51b26f7e637eea3c | |
| Service and application | environment | The key, based on the SDK credentials used in the observability SDKs. | production |
host.name | The hostname. | ip-172-31-5-211.us-east-2.compute.internal | |
os.description | Description of the operating system. | Alpine Linux 3.17.2 (Linux ip-172-31-5-211.us-east-2.compute.internal 5.10.167-147.601.amzn2.aarch64 #1 SMP Tue Feb 14 21:50:23 UTC 2023 arch64) | |
os.type | Type of operating system. | linux | |
secure_session_id | Session ID that contains the log. | wh1jcuN5F9G6Ra5CKeCjdIk6Rbyd | |
service_name | Name of the service specified in the SDK plugin. To learn more, read Versioning sessions and errors. | private-graph | |
service_version | Version of the service specified in the observability SDK plugin. To learn more, read Versioning sessions and errors. | e1845285cb360410aee05c61dd0cc57f85afe6da | |
source | General origin of the log. | backend |