Methods

static
error(...message)

Prints an error message on console and throws an error.

Parameter

Name Type Optional Description

message

String

 

messages to be printed.

Value can be repeated.

static
info(...message)

Prints an informative message on console.

Parameter

Name Type Optional Description

message

String

 

messages to be printed

Value can be repeated.

static
setLevel(level)

Sets logging level.

Parameter

Name Type Optional Description

level

Number

 

logging level { 1: info, 2: warn, 3: error }

static
warn(...message)

Prints a warning message on console.

Parameter

Name Type Optional Description

message

String

 

messages to be printed.

Value can be repeated.