@@ -0,0 +1,392 @@
+#!/usr/bin/python%0A# -*- coding: utf-8 -*-%0A%0A# Error Log model%0A%0Aimport pprint%0App = pprint.PrettyPrinter(indent=4)%0A%0A%0A%0Aclass ErrorLog:%0A%0A%0A    def __init__(self, error):%0A        self.error = error%0A%0A%0A    # create instance from gathered data%0A    @classmethod%0A    def create(cls, error):%0A        return cls(error=error)%0A%0A%0A    # write error log to file%0A    def write(self):%0A        return self%0A%0A%0A%0A%0A%0A%0A%0A%0A

add ErrorLog model