| 4855 | |
| 4856 | |
| 4857 | class TestBufferingFormatter(logging.BufferingFormatter): |
| 4858 | def formatHeader(self, records): |
| 4859 | return '[(%d)' % len(records) |
| 4860 | |
| 4861 | def formatFooter(self, records): |
| 4862 | return '(%d)]' % len(records) |
| 4863 | |
| 4864 | class BufferingFormatterTest(unittest.TestCase): |
| 4865 | def setUp(self): |