Source

logging/ILogger.ts

  1. /**
  2. * Represents a logger
  3. * @category Logging
  4. */
  5. export interface ILogger {
  6. /**
  7. * Logs to the INFO channel
  8. * @param {string} module The module being logged
  9. * @param {any[]} messageOrObject The data to log
  10. */
  11. info(module: string, ...messageOrObject: any[]);
  12. /**
  13. * Logs to the WARN channel
  14. * @param {string} module The module being logged
  15. * @param {any[]} messageOrObject The data to log
  16. */
  17. warn(module: string, ...messageOrObject: any[]);
  18. /**
  19. * Logs to the ERROR channel
  20. * @param {string} module The module being logged
  21. * @param {any[]} messageOrObject The data to log
  22. */
  23. error(module: string, ...messageOrObject: any[]);
  24. /**
  25. * Logs to the DEBUG channel
  26. * @param {string} module The module being logged
  27. * @param {any[]} messageOrObject The data to log
  28. */
  29. debug(module: string, ...messageOrObject: any[]);
  30. /**
  31. * Logs to the TRACE channel
  32. * @param {string} module The module being logged
  33. * @param {any[]} messageOrObject The data to log
  34. */
  35. trace(module: string, ...messageOrObject: any[]);
  36. }