Collate output in Python logging MemoryHandler with SMTPHandler

You might want to use or adapt the BufferingSMTPHandler which is in this test script.

In general, you don’t need to add a handler to a logger if it’s the target of a MemoryHandler handler which has been added to a logger. If you set the level of a handler, that will affect what the handler actually processes – it won’t process anything which is less severe than its level setting.

Leave a Comment