Compartir a través de


WinJS.Utilities.formatLog function

Adds tags and type to a logging message.

Syntax

var string = WinJS.Utilities.formatLog(message, tag, type);

Parameters

  • message
    Type: String

    The message to be formatted.

  • tag
    Type: String

    The tag(s) to be applied to the message. Multiple tags should be separated by spaces

  • type
    Type: String

    The type of the message.

Return value

Type: String

The formatted message.

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.Utilities