API Reference

class mailinglogger.common.SubjectFormatter(fmt=None, datefmt=None)

Bases: logging.Formatter

This is a logging formatter tailored to formatting log messages to appear in the subject line of an email. For details of how these differ from normal Formatter objects, see the SubjectFormatter documentation.

Note

You should not need to manually instantiate this class as this will be done by either MailingLogger or SummarisingLogger when the subject parameter to their constructors is processed.

class mailinglogger.common.HTMLFilter

This is a logging filter that quotes logged messages such that they are safe for use in HTML emails. For an example usage, see Sending HTML Emails.