How to use the @statusfy/common.logger.debug function in @statusfy/common

To help you get started, we’ve selected a few @statusfy/common 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 bazzite / statusfy / packages / @statusfy / core / lib / dev.js View on Github external
.on("quit", () => {
      logger.debug("nodemon has quit");
      process.exit();
    })
    .on("restart", files => {
github bazzite / statusfy / packages / @statusfy / core / client / modules / statusfy / index.js View on Github external
this.nuxt.hook("generate:done", () => {
            logger.debug("Close the server connection");
            server.close();
          });
        }
github bazzite / statusfy / packages / @statusfy / core / client / modules / statusfy / index.js View on Github external
this.nuxt.hook("build:done", async generator => {
        if (isStatic) {
          logger.debug("Open the server connection");

          statusfyOptions.siteConfig.build.isStatic = true;

          const server = await createServer(
            statusfyOptions.siteConfig,
            null,
            this.options.server.host,
            this.options.server.port,
            "/static/content"
          );

          this.nuxt.hook("generate:done", () => {
            logger.debug("Close the server connection");
            server.close();
          });
        }
github bazzite / statusfy / packages / @statusfy / core / client / modules / statusfy / index.js View on Github external
const copyPublicFiles = async (src, dest) => {
  if (src) {
    logger.debug(`Copying public files ${dest}`);

    try {
      await fse.copy(src, dest);
    } catch (error) {
      logger.error(`Couldn't copy public files ${dest}`);
      logger.error(error);
    }
  }
};
github bazzite / statusfy / packages / @statusfy / core / lib / dev.js View on Github external
.on("crash", () => {
      logger.debug("nodemon crashed for some reason");
    });
};
github bazzite / statusfy / packages / @statusfy / core / lib / dev.js View on Github external
.on("start", () => {
      logger.debug("nodemon has started");
    })
    .on("quit", () => {