WinJS.Utilities.formatLog function

Applies to Windows and Windows Phone

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 supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

Namespace

WinJS.Utilities

Library

Base.js

 

 

Show:
© 2014 Microsoft