itamarst / eliot

Eliot: the logging system that tells you *why* it happened
https://eliot.readthedocs.io
Apache License 2.0
1.11k stars 66 forks source link

Testing infrastructure (@capture_logging) can't use custom JSON encoders #456

Closed itamarst closed 3 years ago

itamarst commented 3 years ago

If you have a custom JSON encoder, and you try to test your log messages, your tests will fail because the MemoryLogger code path always encodes with the plain-vanilla JSON encoder.

Given FileDestination supports a custom JSON encoder, this is a problem.