UNPKG

pockybot

Version:

Spark bot that handles team recognition

28 lines (27 loc) 1.12 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Logger = void 0; const constants_1 = require("../constants"); var Logger; (function (Logger) { function debug(message) { console.log(`${new Date().toISOString()} DEBUG ${constants_1.default.botName} ${process.env.VERSION_BRANCH} 1 ${JSON.stringify(message)}`); } Logger.debug = debug; ; function error(message) { console.log(`${new Date().toISOString()} ERROR ${constants_1.default.botName} ${process.env.VERSION_BRANCH} 1 ${JSON.stringify(message)}`); } Logger.error = error; ; function information(message) { console.log(`${new Date().toISOString()} INFORMATION ${constants_1.default.botName} ${process.env.VERSION_BRANCH} 1 ${JSON.stringify(message)}`); } Logger.information = information; ; function warn(message) { console.log(`${new Date().toISOString()} WARNING ${constants_1.default.botName} ${process.env.VERSION_BRANCH} 1 ${JSON.stringify(message)}`); } Logger.warn = warn; ; })(Logger = exports.Logger || (exports.Logger = {}));