MCPcopy Create free account
hub / github.com/getsentry/sentry-javascript / warn

Function warn

packages/core/src/logs/public-api.ts:164–170  ·  view source on GitHub ↗
(
  message: ParameterizedString,
  attributes?: Log['attributes'],
  { scope }: CaptureLogMetadata = {},
)

Source from the content-addressed store, hash-verified

162 * ```
163 */
164export function warn(
165 message: ParameterizedString,
166 attributes?: Log['attributes'],
167 { scope }: CaptureLogMetadata = {},
168): void {
169 captureLog('warn', message, attributes, scope);
170}
171
172/**
173 * @summary Capture a log with the `error` level. Requires the `enableLogs` option to be enabled.

Callers

nothing calls this directly

Calls 1

captureLogFunction · 0.70

Tested by

no test coverage detected