MCPcopy Create free account
hub / github.com/FastLED/FastLED / log

Function log

src/platforms/wasm/compiler/index.ts:320–328  ·  view source on GitHub ↗

* Custom console.log implementation with timestamps * @param {...*} args - Arguments to log

(...args)

Source from the content-addressed store, hash-verified

318 * @param {...*} args - Arguments to log
319 */
320function log(...args) {
321 const argsWithTime = toStringWithTimeStamp(...args);
322 _prev_log(...argsWithTime); // Spread the array when calling original logger
323 try {
324 print(...argsWithTime);
325 } catch (e) {
326 _prev_log('Error in log', e);
327 }
328}
329
330/**
331 * Custom console.warn implementation with timestamps

Callers 1

inmp441_rms_to_dBFunction · 0.50

Calls 2

toStringWithTimeStampFunction · 0.85
printFunction · 0.70

Tested by

no test coverage detected