This repository has been archived by the owner on Oct 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
sp core library.log.warn
John Nguyen edited this page Apr 22, 2021
·
2 revisions
Home > @microsoft/sp-core-library > Log > warn
Logs a warning.
Signature:
static warn(source: string, message: string, scope?: ServiceScope): void;
Parameter | Type | Description |
---|---|---|
source | string | the source from where the message is logged, e.g., the class name. The source provides context information for the logged message. If the source's length is more than 20, only the first 20 characters are kept. |
message | string | the message to be logged If the message's length is more than 100, only the first 100 characters are kept. |
scope | ServiceScope | the service scope that the source uses. A service scope can provide more context information (e.g., web part information) to the logged message. |
Returns:
void