def register_log(self): """ Function registers Log facade using configuration in app.config.<env>. Note: The Log facade will be registered using default configuration if there isn't any 'log' key in app.config.<env>. """ if 'log' in self.config: Log.register(self.config['log']) else: Log.register()
def register_log(self): if 'log' in self.config: Log.register(log, self.config['log']) else: Log.register(log)