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.

14 lines
449 B

2 years ago
2 years ago
  1. const { log, logt } = require("./tlog");
  2. log("use", ["exactly", "like"], `console.log ${17 * 15}`)
  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)