UNPKG

@yodata/context-sdk

Version:

tools for developing and publishing yodata-context (cdef.yaml) files.

23 lines (20 loc) 490 B
/* eslint-disable no-console */ const chalk = require('chalk') const Logger = { log (...msg) { return console.log(...msg) }, info (...msg) { return console.log(chalk.green('[Info]'), ...msg) }, error (...msg) { return console.error(chalk.bold.red('[Error]'), ...msg) }, warn (...msg) { return console.warn(chalk.keyword('orange')('[Warn]'), ...msg) }, debug (...msg) { return console.warn(chalk.blue('[Debug]'), ...msg) } } module.exports = Logger