Custom logger implementation or null to disable logging
import { setLogger } from 'selva-compute';
// Enable console logging
setLogger(console);
// Use a custom logger
setLogger({
debug: (msg, ...args) => myLogger.debug(msg, ...args),
info: (msg, ...args) => myLogger.info(msg, ...args),
warn: (msg, ...args) => myLogger.warn(msg, ...args),
error: (msg, ...args) => myLogger.error(msg, ...args)
});
// Disable logging
setLogger(null);
Set a custom logger instance
Use this to configure custom logging behavior.