logging.js 528 B

123456789101112131415161718192021222324252627282930
  1. /**
  2. * @fileoverview Handle logging for ESLint
  3. * @author Gyandeep Singh
  4. */
  5. "use strict";
  6. /* eslint no-console: "off" */
  7. /* istanbul ignore next */
  8. module.exports = {
  9. /**
  10. * Cover for console.log
  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.error
  19. * @param {...any} args The elements to log.
  20. * @returns {void}
  21. */
  22. error(...args) {
  23. console.error(...args);
  24. }
  25. };