@tencentcloud/roomkit-electron-vue3
Version:
<h1 align="center"> TUIRoomKit</h1> Conference (TUIRoomKit) is a product suitable for multi-person audio and video conversation scenarios such as business meetings, webinars, and online education. By integrating this product, you can add room management,
42 lines (41 loc) • 1.02 kB
JavaScript
;
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const LogLevelType = {
LOG_LEVEL_DEBUG: -1,
LOG_LEVEL_LOG: 0,
LOG_LEVEL_INFO: 1,
LOG_LEVEL_WARN: 2,
LOG_LEVEL_ERROR: 3,
LOG_LEVEL_NON_LOGGING: 4
// No logging level, no logs will be printed
};
var LogContext = /* @__PURE__ */ ((LogContext2) => {
LogContext2["MAIN"] = "main-process";
LogContext2["RENDER"] = "render-process";
return LogContext2;
})(LogContext || {});
function padMs(ms) {
const len = ms.toString().length;
let ret;
switch (len) {
case 1:
ret = `00${ms}`;
break;
case 2:
ret = `0${ms}`;
break;
default:
ret = ms;
break;
}
return ret;
}
function getLogPrefix(context) {
const date = /* @__PURE__ */ new Date();
return `${date.toLocaleTimeString("en-US", {
hour12: false
})}.${padMs(date.getMilliseconds())} [${context}]:`;
}
exports.LogContext = LogContext;
exports.LogLevelType = LogLevelType;
exports.getLogPrefix = getLogPrefix;