This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vinay.sajip
Recipients ezio.melotti, michael.foord, pitrou, r.david.murray, vinay.sajip
Date 2013-09-05.21:43:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I agree a context manager would be useful. Note that I have already provided a Handler subclass (TestHandler) as well as a Matcher class which allows matching of LogRecords, and which can be used in assertions. These are in as they were originally intended for Python's own tests, but could be moved to the logging package if they are considered more generally useful.

See this for how to use them:
Date User Action Args
2013-09-05 21:43:36vinay.sajipsetrecipients: + vinay.sajip, pitrou, ezio.melotti, r.david.murray, michael.foord
2013-09-05 21:43:36vinay.sajipsetmessageid: <>
2013-09-05 21:43:36vinay.sajiplinkissue18937 messages
2013-09-05 21:43:36vinay.sajipcreate