amazonka
amazonka copied to clipboard
Come up with a better solution for logging
Logging should be redone at some point in the future - I'd rather emit a simple line-oriented format designed for a reading by an operator by default and then let the library consumer configure/override formats such as JSON, if they wish.
Originally posted by @brendanhay in https://github.com/brendanhay/amazonka/pull/746#discussion_r788043467
The current pseudo-json in logs is noisy (#501, #737) and it hard to handle in CloudWatch logs.
With #875, there is very little need for Amazonka to care about a specific Logger type, and it could be deprecated and removed.
Some downstream libraries (example: @axman6 's amazonka-s3-streaming) currently extract the Logger from the Env in order to write their messages. We may need to keep something log-like around for such uses.