Skip to main content

useLog

@webda/core


Function: useLog()

useLog(...args): void

Defined in: packages/workout/lib/core.d.ts:34

Log a message using the global WorkerOutput instance

Parameters​

args​

...[WorkerLogLevel, ...args: any[]]

Log level followed by message arguments

Returns​

void

Example​

useLog("INFO", "Application started");
useLog("ERROR", "Failed to connect:", error);