Home
last modified time | relevance | path

Searched refs:log_path (Results 1 - 15 of 15) sorted by relevance

/build/hb/util/
H A Dlog_util.py82 def write_log(log_path, msg, level):
83 os.makedirs(os.path.dirname(log_path), exist_ok=True)
85 with open(log_path, 'at', encoding='utf-8') as log_file:
120 def get_gn_failed_log(log_path):
121 error_log = os.path.join(os.path.dirname(log_path), 'error.log')
123 with open(log_path, 'rt', encoding='utf-8') as log_file:
139 error_log, log_path), return_status_code)
142 def get_ninja_failed_log(log_path):
143 error_log = os.path.join(os.path.dirname(log_path), 'error.log')
145 with open(log_path, 'r
[all...]
H A Dmonitor.py50 self.log_path = ""
125 LogUtil.write_log(self.log_path, f"User Cpu%: {usr_cpu}%", "info")
126 LogUtil.write_log(self.log_path, f"System Cpu%: {sys_cpu}%", "info")
127 LogUtil.write_log(self.log_path, f"Idle CPU%: {idle_cpu}%", "info")
134 LogUtil.write_log(self.log_path, f"Total Memory: {total_mem}GB", "info")
135 LogUtil.write_log(self.log_path, f"Free Memory: {free_mem}GB", "info")
136 LogUtil.write_log(self.log_path, f"Swap Memory: {swap_mem}GB", "info")
154 LogUtil.write_log(self.log_path,
163 LogUtil.write_log(self.log_path, f"Error running df command:{result.stderr}", "info")
169 self.log_path
[all...]
H A Dsystem_util.py36 def exec_command(cmd: list, log_path='out/build.log', exec_env=None, log_mode='normal', **kwargs):
43 if not os.path.exists(os.path.dirname(log_path)):
44 os.makedirs(os.path.dirname(log_path), exist_ok=True)
53 with open(log_path, 'at', encoding='utf-8') as log_file:
77 LogUtil.get_failed_log(log_path)
/build/lite/ndk/build/
H A Dbuild.py27 def exec_command(cmd, log_path='out/build.log', **kwargs):
45 log_path = os.path.join(product_path, 'compile.log')
68 exec_command(gn_cmd, log_path)
71 exec_command(ninja_cmd, log_path)
86 exec_command(clean_cmd, log_path)
/build/hb/services/
H A Dninja.py46 LogUtil.write_log(self.config.log_path,
63 self.config.log_path,
71 self.config.log_path,
H A Dgn.py103 LogUtil.write_log(self.config.log_path, 'Excuting gn command: {} {} --args="{}" {}'.format(
119 SystemUtil.exec_command(gn_gen_cmd, self.config.log_path, log_mode=self.config.log_mode)
128 SystemUtil.exec_command(gn_gen_cmd, self.config.log_path)
H A Dhpm.py121 SystemUtil.exec_command(hpm_build_cmd, log_path=logpath)
H A Dloader.py863 LogUtil.write_log(self.config.log_path,
/build/lite/
H A Dutils.py55 def exec_command(cmd: str, log_path: str = 'out/build.log', **kwargs):
56 with open(log_path, 'at', encoding='utf-8') as log_file:
70 with open(log_path, 'at', encoding='utf-8') as log_file:
74 print('you can check build log in {}'.format(log_path))
/build/test/example/
H A Dmylogger.py85 log_path = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "log")
86 if not os.path.exists(log_path):
87 os.makedirs(log_path)
88 tfr_handler = SafeFileHandler(os.path.join(log_path, class_name + ".log"))
/build/hb/util/prebuild/
H A Dpatch_process.py89 SystemUtil.exec_command(cmd, log_path=self.config.log_path,
/build/ohos/packages/
H A Dfs_process.py184 log_path = self.config.log_path
189 SystemUtil.exec_command(cmd, log_path=log_path)
247 r'${log_path}': args.log_path,
/build/hb/resolver/
H A Dbuild_args_resolver.py232 LogUtil.write_log(Config().log_path, 'In the component "{}" directory,'
328 SystemUtil.exec_command(cmd, log_path=config.log_path)
733 SystemUtil.exec_command(cmd, log_path=config.out_path)
795 SystemUtil.exec_command(cmd, log_path=config.log_path)
814 SystemUtil.exec_command(cmd, log_path=config.log_path)
841 SystemUtil.exec_command(cmd, log_path=config.log_path)
[all...]
/build/
H A Dprebuilts_download.py414 log_path = error_info.split()[-1]
415 cmd = ['cat', log_path]
/build/hb/resources/
H A Dconfig.py289 def log_path(self): member in Config
293 raise OHOSException(f'Failed to get log_path')

Completed in 8 milliseconds