We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Similarly to how we implemented it in meroxa's CLI: https://github.com/meroxa/cli/tree/4836e3d078f42ae19e48234d24300bac50e62734/log
This would let us provide a --json flag and automatically print out what we'd like (among other benefits):
--json
Conduit Commands would need to implement:
_ ecdysis.CommandWithLogger = (*MyCommand)(nil) type MyCommand struct { logger log.Logger } func (c *MyCommand) Logger(logger log.Logger) { c.logger = logger } func (c *MyCommand) Execute(ctx context.Context) error { // var prettyJSON c.logger.JSON(ctx, prettyJSON.String()) c.logger.Info(ctx, "hello world") return nil }
Part of #1911
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Similarly to how we implemented it in meroxa's CLI: https://github.com/meroxa/cli/tree/4836e3d078f42ae19e48234d24300bac50e62734/log
This would let us provide a
--json
flag and automatically print out what we'd like (among other benefits):Conduit Commands would need to implement:
Part of #1911
The text was updated successfully, but these errors were encountered: