logging.js 635 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /**
  2. * @fileoverview Handle logging for ESLint
  3. * @author Gyandeep Singh
  4. */
  5. "use strict";
  6. /* eslint no-console: "off" -- Logging util */
  7. /* c8 ignore next */
  8. module.exports = {
  9. /**
  10. * Cover for console.info
  11. * @param {...any} args The elements to log.
  12. * @returns {void}
  13. */
  14. info(...args) {
  15. console.log(...args);
  16. },
  17. /**
  18. * Cover for console.warn
  19. * @param {...any} args The elements to log.
  20. * @returns {void}
  21. */
  22. warn(...args) {
  23. console.warn(...args);
  24. },
  25. /**
  26. * Cover for console.error
  27. * @param {...any} args The elements to log.
  28. * @returns {void}
  29. */
  30. error(...args) {
  31. console.error(...args);
  32. },
  33. };