bimworks.LogProxy
Interface in @sascom/commonjs.
API catalogue · @sascom/commonjs · Interface
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)[]) => voidLogs at DEBUG level through the active logger
error#
TypeScript#
readonly error: (...args: (unknown)[]) => voidLogs at ERROR level through the active logger
info#
TypeScript#
readonly info: (...args: (unknown)[]) => voidLogs at INFO level through the active logger; a no-op when the level is lower
warn#
TypeScript#
readonly warn: (...args: (unknown)[]) => voidLogs at WARN level through the active logger
setLogger#
TypeScript#
setLogger(level: "NONE" | "ERROR" | "WARN" | "INFO", store: boolean): voidChange 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) |