"use strict";
exports.id = 674;
exports.ids = [674];
exports.modules = {

/***/ 674:
/***/ ((module, __webpack_exports__, __webpack_require__) => {

__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */   "k": () => (/* binding */ logger)
/* harmony export */ });
/* harmony import */ var winston__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7773);
/* harmony import */ var winston__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(winston__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7564);
/* harmony import */ var luxon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2748);
/* harmony import */ var luxon__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(luxon__WEBPACK_IMPORTED_MODULE_2__);
var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([chalk__WEBPACK_IMPORTED_MODULE_1__]);
chalk__WEBPACK_IMPORTED_MODULE_1__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];



const { combine , timestamp , printf  } = winston__WEBPACK_IMPORTED_MODULE_0__.format;
const getDebugLevel = ()=>{
    const level = process.env.TASKLESS_DEV_DEBUG ?? "info";
    return [
        "debug",
        "log",
        "info",
        "warn",
        "error"
    ].includes(level) ? level : "info";
};
const colorizedLabel = {
    info: chalk__WEBPACK_IMPORTED_MODULE_1__["default"].blue,
    warn: chalk__WEBPACK_IMPORTED_MODULE_1__["default"].yellow,
    error: chalk__WEBPACK_IMPORTED_MODULE_1__["default"].red
};
const logFormat = printf(({ level , message , label , job , timestamp: timestamp1  })=>{
    const colorizer = colorizedLabel[level] || colorizedLabel.info;
    const dt = luxon__WEBPACK_IMPORTED_MODULE_2__.DateTime.fromISO(timestamp1);
    const lbl = label ?? "root";
    const jobLabel = job ? `${lbl} ${job}` : null;
    const fullLabel = jobLabel ?? lbl;
    const ts = `${dt.toLocaleString(luxon__WEBPACK_IMPORTED_MODULE_2__.DateTime.TIME_24_WITH_SECONDS)}.${dt.get("millisecond")}`;
    return `${colorizer(level).padEnd(6, " ")} - ${chalk__WEBPACK_IMPORTED_MODULE_1__["default"].gray(`${ts} (${fullLabel})`)} ${message}`;
});
const logger = (0,winston__WEBPACK_IMPORTED_MODULE_0__.createLogger)({
    format: combine(timestamp(), logFormat),
    transports: [
        new winston__WEBPACK_IMPORTED_MODULE_0__.transports.Console({
            level: getDebugLevel()
        }), 
    ]
});

__webpack_async_result__();
} catch(e) { __webpack_async_result__(e); } });

/***/ })

};
;