@contaquanto/qlog
Version:
quanto logging tool
23 lines (22 loc) • 970 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var LogOperation;
(function (LogOperation) {
LogOperation["MSG"] = "MSG";
LogOperation["IO"] = "IO";
LogOperation["AWAIT"] = "AWAIT";
LogOperation["DONE"] = "DONE";
LogOperation["NOTE"] = "NOTE";
})(LogOperation || (LogOperation = {}));
exports.LogOperation = LogOperation;
var OperationColors = {};
exports.OperationColors = OperationColors;
OperationColors[LogOperation.MSG] = 'bgBlack';
OperationColors[LogOperation.IO] = 'bgMagenta';
OperationColors[LogOperation.AWAIT] = 'bgCyan';
OperationColors[LogOperation.DONE] = 'bgGreen';
OperationColors[LogOperation.NOTE] = 'bgBlack';
var MaxOperationStringLength = [LogOperation.MSG, LogOperation.IO, LogOperation.AWAIT, LogOperation.DONE, LogOperation.NOTE]
.reduce(function (l, c) { return c.length > l ? c.length : l; }, 0);
exports.MaxOperationStringLength = MaxOperationStringLength;
exports.default = LogOperation;