diff --git a/src/logger.js b/src/logger.js index b523aff260..6cec795498 100644 --- a/src/logger.js +++ b/src/logger.js @@ -58,6 +58,15 @@ const getLogMetadata = (metadata) => { }; }; +/** + * Perform logging operation on logMethod passed + * + * @param {*} logMethod + * - instance method reference + * - The logger should implement all of debug/info/warn/error methods + * @param {*} args + * - the arguments that needs to be passed to logger instance method + */ const log = (logMethod, args) => { const [message, logInfo, ...otherArgs] = args; if (logInfo) {