How to use the electron-log.silly function in electron-log

To help you get started, we’ve selected a few electron-log examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github GooBox / goobox-community-gui / src / main / jre.js View on Github external
new Promise((resolve, reject) => {
      log.verbose(`[GUI main] JRE path: ${jre.jreDir()}`);
      let shouldInstall = false;
      try {
        if (!fs.existsSync(jre.driver())) {
          shouldInstall = true;
        }
      } catch (err) {
        log.silly(err);
        shouldInstall = true;
      }

      if (shouldInstall) {
        log.info(
          "[GUI main] JRE is not found and starts installation of a JRE"
        );
        jre.install(err => {
          log.info(
            `[GUI main] JRE installation has been finished ${
              err ? `with an error: ${err}` : ""
            }`
          );
          // noinspection SpellCheckingInspection
          if (err && err !== "Smoketest failed.") {
            log.error("[GUI main] JRE installation failed and cleaning up");
github symphonyoss / SymphonyElectron / src / common / logger.ts View on Github external
private log(logLevel: LogLevel, message: string, data: any[] = []): void {
        if (data && data.length > 0) {
            data.forEach((param) => {
                message += `, '${param && typeof param}': ${JSON.stringify(param)}`;
            });
        }
        if (!isElectronQA) {
            switch (logLevel) {
                case 'error': electronLog.error(message); break;
                case 'warn': electronLog.warn(message); break;
                case 'info': electronLog.info(message); break;
                case 'verbose': electronLog.verbose(message); break;
                case 'debug': electronLog.debug(message); break;
                case 'silly': electronLog.silly(message); break;
                default: electronLog.info(message);
            }
        }
        this.sendToCloud(this.formatLogMsg(logLevel, message));
    }
github DST-Tools / DSTEd / Source / Classes / Logger.js View on Github external
this.silly = function silly() {
		_logger.silly(arguments);
	};
github meetalva / alva / packages / core / src / hosts / electron-host / electron-host.ts View on Github external
this.sender.setLog((m: string, message: Message.Message) => {
			this.log(m, message.type, message.id);
			ElectronLog.silly(message);
		});
	}