brendanhay / amazonka

A comprehensive Amazon Web Services SDK for Haskell.
https://amazonka.brendanhay.nz
Other
605 stars 226 forks source link

Come up with a better solution for logging #753

Open endgame opened 2 years ago

endgame commented 2 years ago

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.

endgame commented 1 year ago

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.