Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Generalize console output and/or logging to enable alternate log formats/streams (e.g. JSON) #43

Open
sopel opened this issue Apr 21, 2013 · 1 comment
Assignees
Milestone

Comments

@sopel
Copy link
Owner

sopel commented Apr 21, 2013

Console output and logging have evolved in an ad hoc fashion and are severely inconsistent accordingly, see e.g. init.py#L69 and describe-stacks.py#L34.

Given the current use cases are automation related, there had also been considerations to facilitate JSON console output to allow command output chaining/usage via the Unix pipeline pattern and respective JSON command processors like e.g. jq.

A possible implementation would likely involve use of Multiple handlers and formatters and Logging to multiple destinations.

This should be revisited to ease library evolution and maintenance.

@sopel
Copy link
Owner Author

sopel commented Feb 9, 2014

ℹ️ worth noting that (amongst other related improvements), the http://aws.amazon.com/cli/ meanwhile features an extremely powerful JSON output plus result shaping query functionality, which mostly obsoletes the jq option mentioned above, see e.g.:

This should be mirrored here accordingly, which again calls for reconsidering the entire project design/purpose though (see #44).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant