Step Logging and changes to StepError type to errors #18
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes significant updates to the
go-steps
library, focusing on logging enhancements, error handling improvements, and updates to the example usage. The most important changes include the introduction of a logging mechanism usingzerolog
, modifications to error handling structures, and updates to the example code to demonstrate the new features.Logging Enhancements:
zerolog
package. The logger can be initialized withgosteps.NewGoStepsLogger
and used within the context (go_step_logger.go
).ctx.Log()
method (go_step_context.go
). [1] [2]Error Handling Improvements:
StepError
type with the standarderror
type for better compatibility and simplicity (README.md
,go_step_result.go
,go_step_types.go
). [1] [2]StepResult
struct and related methods to handle standard errors (go_step_result.go
).Example Code Updates:
example/multistep-example/main.go
to demonstrate the new logging and error handling features, including retry logic and logging within steps. [1] [2] [3] [4] [5] [6] [7]Documentation Updates:
README.md
to reflect the changes in error handling and to include examples of the new logging functionality. [1] [2] [3]Miscellaneous:
go.mod
file to include thezerolog
package and other dependencies.Issue