WinJS.log function
You can provide an implementation of this method yourself, or use WinJS.Utilities.startLog to create one that logs to the JavaScript console.
Syntax
WinJS.log(message, tags, type);
Parameters
- message
-
Type: String
The message to log.
- tags
-
Type: String
The tag or tags to categorize the message (winjs, winjs controls, etc.).
- type
-
Type: String
The type of message (error, warning, info, etc.).
Return value
This function does not return a value.
Remarks
The WinJS.log function is left for you to implement for performance purposes. The following code shows how to start logging and write to the log.
WinJS.Utilities.startLog({type: "customType", tags: "custom" });
WinJS.log && WinJS.log("starting up", "custom", "customType");
Requirements
|
Namespace |
WinJS |
|---|---|
|
Library |
|
Build date: 12/5/2012
