UNPKG

@tecfancy/log

Version:
14 lines 595 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const npmlog_1 = __importDefault(require("npmlog")); // Change the prefix of log messages npmlog_1.default.heading = "TecFancy"; // Set the logging level npmlog_1.default.level = process.env.LOG_LEVEL || "info"; // Add custom log levels npmlog_1.default.addLevel("success", 2000, { fg: "green", bold: true }); exports.default = npmlog_1.default; //# sourceMappingURL=index.js.map