Skip to content

v0.3.0

Compare
Choose a tag to compare
@github-actions github-actions released this 30 Jun 14:48
· 36 commits to main since this release
292392e

Minor Changes

  • cc3b908: Add the logger instance to the context that is passed in to the action handler.

    This allows the action handler to send logs with the context established by the action wrapper.

    This means that you can do the following in your action handlers:

    const handler: ActionHandler<Context, Input, Output> = (ctx, input) => {
      ctx.logger.info("This is a log from inside the action handler");
    
      // ...do something and return a result
      return doSomething(input);
    };

    And it will yield this log in addition to the normal logs that the wrapper emits:

    [{DisplayName}:{CorrelationId}] Action Started (input: {input})]
    [{DisplayName}:{CorrelationId}] This is a log from inside the action handler
    [{DisplayName}:{CorrelationId}] Action Completed (data: {data})]
    

Patch Changes

  • 434c30a: Corrections and enhancements to the examples in the README.md.