Edgewall Software

Changes between Initial Version and Version 1 of Ticket #11874, comment 11


Ignore:
Timestamp:
Aug 29, 2016, 9:07:13 PM (5 years ago)
Author:
Ryan J Ollos

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.
     1Since #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.