Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /usr/local/lib/node_modules/homebridge-config-ui-x/dist/core/logger/ drwxr-xr-x | |
| Viewing file: Select action/file-type: "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Logger = void 0;
const common_1 = require("@nestjs/common");
const color = require("bash-color");
class Logger extends common_1.ConsoleLogger {
constructor() {
super(...arguments);
this.pluginName = ('Homebridge UI');
this.useTimestamps = (process.env.UIX_LOG_NO_TIMESTAMPS !== '1');
}
get prefix() {
if (this.useTimestamps) {
return color.white(`[${new Date().toLocaleString()}] `) + color.cyan(`[${this.pluginName}]`);
}
else {
return color.cyan(`[${this.pluginName}]`);
}
}
log(...args) {
console.log(this.prefix, ...args);
}
error(...args) {
console.error(this.prefix, ...args.map(x => color.red(x)));
}
warn(...args) {
console.warn(this.prefix, ...args.map(x => color.yellow(x)));
}
debug(...args) {
if (process.env.UIX_DEBUG_LOGGING === '1') {
console.debug(this.prefix, ...args.map(x => color.green(x)));
}
}
verbose(...args) {
console.debug(this.prefix, ...args);
}
}
exports.Logger = Logger;
//# sourceMappingURL=logger.service.js.map |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0066 ]-- |