logError() function

logError() function

Log an error. Depending on configuration might be forwarded to backend and logged to stdout or sent to Sentry

Signature

  1. export declare function logError(err: Error, contexts?: Contexts): void;

Import

  1. import { logError } from '@grafana/runtime';

Parameters

ParameterTypeDescription
errError
contextsContexts

Returns:

void