sopel / botocross

A Python package for operating cross region AWS resources
Other
4 stars 4 forks source link

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

Open sopel opened 11 years ago

sopel commented 11 years ago

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 commented 10 years ago

:information_source: 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).