log

Logging utilities

Source:

Classes

LogMessageBuilder

Members

(static, readonly) types :Object

Types of log messages

Properties:
Name Type Description
information string

the informational message type

warning string

the warning type

error string

the error type

response string

the response type

Source:
Type:
  • Object

(inner, constant) SRC_SPACING :number

Spacing of the message source

Source:
Type:
  • number

Methods

(static) requireFunction(param)

Tests if the parameter is a function, and if it is not, logs an error

Source:
Parameters:
Name Type Description
param *

the parameter to test

(static) requireParam(functionName, param, name)

Tests if the parameter is ok, and if it is not, logs an error

Source:
Parameters:
Name Type Description
functionName string

name of the function which this param is required for

param *

the parameter to test

name string

name of this param in the function requiring it

(inner) log() → {LogMessageBuilder}

Shortcut for new LogMessageBuilder().

Source:
Returns:
Type:
LogMessageBuilder