startLog function

WinJS.Utilities.startLog function

[This documentation is preliminary and is subject to change.]

Applies to: Metro style apps only

Configures a logger that writes messages containing the specified tags from WinJS.log to console.log.

Syntax

WinJS.Utilities.startLog(options);

Parameters

options

Type: Object

The tags for messages to log. Multiple tags should be separated by spaces.

May contain .type, .tags, .excludeTags and .action properties.

  • .type is a required tag.

  • .excludeTags is a space-separated list of tags, any of which will result in a message not being logged.

  • tags is a space-separated list of tags, any of which will result in a message being logged.

  • .action is a function that, if present, will be called with the log message, tags and type. The default is to log to the console.

Return value

This function does not return a value.

Requirements

Namespace

WinJS.Utilities

Library

Base.js

 

 

Build date: 2/10/2012

Ajouts de la communauté

AJOUTER
Afficher:
© 2016 Microsoft