Class: Logger

WinJSContrib.Logs. Logger

new Logger(config)

Parameters:
Name Type Description
config Object

logger configuration

Source:

Methods

addAppender(appender)

add appender to logger

Parameters:
Name Type Description
appender Object
Source:

debug(message)

add debug log entry

Parameters:
Name Type Description
message string

log message

Source:

debug(message)

add debug log entry

Parameters:
Name Type Description
message string

log message

Source:

error(message)

add error log entry

Parameters:
Name Type Description
message string

log message

Source:

getChildLogger(name, level)

Get a child logger

Parameters:
Name Type Description
name string

child logger name

level WinJSContrib.Logs.Levels
Source:

group(title)

create a log group

Parameters:
Name Type Description
title string

group title

Source:

groupCollapsed(title)

create a collapsed log group

Parameters:
Name Type Description
title string

group title

Source:

groupEnd()

end current group

Source:

info(message, group)

add info log entry

Parameters:
Name Type Argument Description
message string

log message

group string <optional>

log group name

Source:

log(message, log)

Add log entry

Parameters:
Name Type Description
message string

log message

log WinJSContrib.Logs.Levels

level

Source:

warn(message)

add warn log entry

Parameters:
Name Type Description
message string

log message

Source: