logWarning() function

logWarning() function

Log a message at WARNING level. Depending on configuration might be forwarded to backend and logged to stdout or sent to Sentry

Signature

  1. export declare function logWarning(message: string, contexts?: Contexts): void;

Import

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

Parameters

ParameterTypeDescription
messagestring
contextsContexts

Returns:

void