Changes between Initial Version and Version 1 of Ticket #11874, comment 11
- Timestamp:
- Aug 29, 2016, 9:07:13 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #11874, comment 11
initial v1 1 I think we can just add [https://docs.python.org/2/library/logging.handlers.html#logging.StreamHandler StreamHandler] as one of the types allowed in [browser:trunk/trac/log.py log.py], and have `EnvironmentStub` utilize `StreamHandler` to log to a stream buffer `target` that we can make assertions again.1 Since #7820 allows the logger to be configured from a file, rather than adding an extension point I think we can just use [https://docs.python.org/2/library/logging.handlers.html#logging.StreamHandler StreamHandler] in `EnvironmentStub`, and have `EnvironmentStub` utilize `StreamHandler` to log to a stream buffer `target` that we can make assertions again.