You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
457 B

  1. const { log, logt } = require("./log4jesus");
  2. log("use", ["exactly", "like"], `console.log ${420 * 69}`)
  3. const downloadProgress = 51;
  4. const totalDownloads = 106;
  5. // send only to targets with the 'verbose' tag
  6. logt("verbose", "Download progress:", downloadProgress / totalDownloads);
  7. const filePath = "/example-non-existant-file.json";
  8. // send to targets with the 'info' and 'error' tags
  9. logt(["error", "info"], "failed to parse json at: ", filePath)