The __init__() method for the framework is defined on line 51. In this constructor, we assign the arguments passed to the constructor as instance variables. We also configure the logging module on line 55. Let's look at the run() method, which, as we saw, is called immediately after the Framework object is instantiated:
051 def __init__(self, input_directory, output_directory, log,
052 **kwargs):
053 self.input = input_directory
054 self.output = output_directory
055 logging.basicConfig(filename=log, level=logging.DEBUG,
056 format=('%(asctime)s | %(levelname)s | '
057 '%(message)s'), filemode='a')
058 self.log = logging.getLogger(log)
059 self.kwargs = kwargs