Namespace: Logging

WinJSContrib. Logging

This API is deprecated, please use WinJSContrib.Logs instead

Source:

Classes

LoggerClass

Namespaces

Appenders

Members

<static> Logging.Levels :number

enumeration for log levels

Type:
  • number
Properties:
Name Type Default Description
off number 0

disabled

error number 1

log error

warn number 2

log warn and error

info number 4

log info, warn, error

debug number 8

log debug, info, warn, error

all number 15

log all

Source:

Methods

<static> getLogger(name, config, appenders) → {WinJSContrib.Logging.LoggerClass}

get a logger, logger is created if it does not exists

Parameters:
Name Type Argument Description
name string

name for the logger

config Object

logger configuration

appenders Object <repeatable>

appenders to add to the logger

Source:
Returns:
Type
WinJSContrib.Logging.LoggerClass