3xworkaround
Version:
This is an interface for 3x-ui panel. It will help developers to create, edit and delete inbounds and clients in a simple way.
16 lines (15 loc) • 748 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.consoleTransport = void 0;
const chalk_1 = __importDefault(require("chalk"));
const winston_1 = __importDefault(require("winston"));
const colorizeFormat_js_1 = require("./colorizeFormat.js");
exports.consoleTransport = new winston_1.default.transports.Console({
format: winston_1.default.format.combine(colorizeFormat_js_1.colorizeFormat, winston_1.default.format.printf(({ level, label, message }) => {
label = chalk_1.default.bold.white(label);
return `[${label}][${level}]: ${message}`;
})),
});