hawat.log module

This module contains logging setup for Hawat application.

class hawat.log.SendmailHandler(fromaddr, toaddrs, subject)[source]

Bases: Handler

A handler class which sends an email using sendmail for each logging event.

emit(record)[source]

Emit a record.

Format the record, create mentat.emails.simple.SimpleEmail email and send it to the specified addresses.

hawat.log.setup_logging_default(app)[source]

Setup default application logging features.

hawat.log.setup_logging_email(app)[source]

Setup application logging via email.

hawat.log.setup_logging_file(app)[source]

Setup application logging via watched file (rotated by external command).