itamarst / eliot

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

Support outputting to destinations in test logging as well #369

Open itamarst opened 5 years ago

itamarst commented 5 years ago

Use case

I want to output the logs which I am capturing with capture_logging to a file, stdout, etc..

Proposed design

In addition to eliot.add_destinations and eliot.to_file, have eliot.testing.add_destinations and eliot.testing.to_file. capture_logging uses those destinations in addition to the validation it does.