Reference·JavaScript · @sascom/commonjsJavaScript

bimworks.LogProxy

Interface in @sascom/commonjs.

API catalogue · @sascom/commonjs · Interface

TypeScript#
interface LogProxy

Members#

Member Kind Description
debug Property Logs at DEBUG level through the active logger
error Property Logs at ERROR level through the active logger
info Property Logs at INFO level through the active logger; a no-op when the level is lower
warn Property Logs at WARN level through the active logger
setLogger Method Change the log level

debug#

TypeScript#
readonly debug: (...args: (unknown)[]) => void

Logs at DEBUG level through the active logger

error#

TypeScript#
readonly error: (...args: (unknown)[]) => void

Logs at ERROR level through the active logger

info#

TypeScript#
readonly info: (...args: (unknown)[]) => void

Logs at INFO level through the active logger; a no-op when the level is lower

warn#

TypeScript#
readonly warn: (...args: (unknown)[]) => void

Logs at WARN level through the active logger

setLogger#

TypeScript#
setLogger(level: "NONE" | "ERROR" | "WARN" | "INFO", store: boolean): void

Change the log level

Parameters#

Name Type Description
level "NONE" | "ERROR" | "WARN" | "INFO" Either NONE, ERROR, WARN or INFO
store boolean Whether the new level should be stored in local storage (and will be automatically retrieved on browser load)