I want all logs to be output someplace different when I am in test mode. Currently this requires me (and every user) to write custom logic to detect test mode.
Proposed design
Building on #369, add eliot.testing.enable_test_mode() that means all logging goes to destinations set by eliot.testing.add_destinations.
File followup ticket for exposing this via py.test plugin.
Use case
I want all logs to be output someplace different when I am in test mode. Currently this requires me (and every user) to write custom logic to detect test mode.
Proposed design
eliot.testing.enable_test_mode()
that means all logging goes to destinations set byeliot.testing.add_destinations
.py.test
plugin.