UNPKG

@atomiqlabs/sdk

Version:

atomiq labs SDK for cross-chain swaps between smart chains and bitcoin

13 lines (12 loc) 668 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getLogger = void 0; function getLogger(prefix) { return { debug: (msg, ...args) => global.atomiqLogLevel >= 3 && console.debug(prefix + msg, ...args), info: (msg, ...args) => global.atomiqLogLevel >= 2 && console.info(prefix + msg, ...args), warn: (msg, ...args) => (global.atomiqLogLevel == null || global.atomiqLogLevel >= 1) && console.warn(prefix + msg, ...args), error: (msg, ...args) => (global.atomiqLogLevel == null || global.atomiqLogLevel >= 0) && console.error(prefix + msg, ...args) }; } exports.getLogger = getLogger;