How to use @adobe/openwhisk-action-logger - 1 common examples

To help you get started, we’ve selected a few @adobe/openwhisk-action-logger examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github adobe / helix-pipeline / src / utils / openwhisk.js View on Github external
// context is initially empty
    // todo: think of adding the adaptOWRequestHere, too
    const context = {
      request: extractClientRequest(action),
    };
    if (params.content) {
      // pass content param from request to context
      context.content = params.content;
    }
    return createActionResponse(await pipe(cont, context, action));
  }
  // enhance logger if trace method is missing (eg. a winston logger)
  if (actionParams.__ow_logger && !actionParams.__ow_logger.trace) {
    actionParams.__ow_logger.trace = actionParams.__ow_logger.silly;
  }
  return logger(logger.trace(runner))(actionParams);
}

@adobe/openwhisk-action-logger

Logger for OpenWhisk Actions

Apache-2.0
Latest version published 3 years ago

Package Health Score

48 / 100
Full package analysis

Popular @adobe/openwhisk-action-logger functions