def _copy_logs(self):
should_fetch_logs = runtime.get_active_config("<STR_LIT>", True)<EOL>if should_fetch_logs:<EOL><INDENT>for deployer in runtime.get_deployers():<EOL><INDENT>for process in deployer.get_processes():<EOL><INDENT>logs = self.dynamic_config_module.process_logs( process.servicename) or []<EOL>logs += self.dynamic_config_module.machine_logs( process.unique_id)<EOL>logs += self.dynamic_config_module.naarad_logs( process.unique_id)<EOL>pattern = self.dynamic_config_module.log_patterns(process.unique_id) or constants.FILTER_NAME_ALLOW_NONE<EOL>deployer.fetch_logs(process.unique_id, logs, self._logs_dir, pattern)<EOL><DEDENT><DEDENT><DEDENT>
Copy logs from remote machines to local destination