Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 1.13 KB

Logger.md

File metadata and controls

23 lines (14 loc) · 1.13 KB

Logger

Methods

setLogLevel(LogLevel)

Sets the amount of logging.

Arguments

| Name | Type | Required | Description | | ---------- | :------: | :------: | :----------------------------------------: | --------- | ------ | ------- | ---------- | | LogLevel | String | Yes | required level of logging, can be "error" | "warning" | "info" | "debug" | "verbose" |

setLogCallback(LogCallback)

Overwrite logging, possibility to mute specific errors/warnings.

Arguments

Name Type Required Description
LogCallback function Yes callback taking a log object { message: String, level: LogLevel, tag: String } as param. If callback return falsy value then default logging will take place.