-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathLog.js
More file actions
21 lines (21 loc) · 677 Bytes
/
Copy pathLog.js
File metadata and controls
21 lines (21 loc) · 677 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.enableDebugLog = exports.debug = exports.error = exports.info = void 0;
function info(text) {
console.log(`i-${new Date().toISOString()}: ${text}`);
}
exports.info = info;
function error(text) {
console.error(`${new Date().toISOString()}: ${text}`);
}
exports.error = error;
let debug = (text) => { };
exports.debug = debug;
function enableDebugLog() {
exports.debug = (text) => {
console.log(`d-${new Date().toISOString()}: ${text}`);
};
(0, exports.debug)("debug log enabled in config");
}
exports.enableDebugLog = enableDebugLog;
//# sourceMappingURL=Log.js.map