Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## @tnezdev/actions@0.3.0 ### 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: ```ts 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`. Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information