fluiddyn.util.logger

Logger sending emails (fluiddyn.util.logger)

Provides:

class fluiddyn.util.logger.Logger(path='log.txt', email_to=None, email_from=None, email_title='title', email_delay=7200, email_server='localhost')[source]

Bases: object

Logger that can send emails.

print_log(*args, **kargs)[source]

Replaces the Python 3 print function.

send_email_if_has_to(name_exception=None, figures=None)[source]

Sends an email if no email was sent recently.

send_email(name_exception=None, figures=None)[source]

Sends the content of the storage file as an email

Classes

Logger([path, email_to, email_from, ...])

Logger that can send emails.