Source code for lookout.logging

__all__ = ['ReportMessage']

[docs]class ReportMessage: """ Log message that can contain unserialized report data to be passed to specialized log handlers. """ msg = "Django-Lookout" report = None def __init__ (self, msg=None, report=None): if msg is not None: self.msg = msg if report is not None: = report def __str__ (self): """ Returns a plaintext log entry that includes the most important data. """ return '{}\n{}'.format(self.msg,