Searched refs:log_path (Results 1 - 15 of 15) sorted by relevance
/build/hb/util/ |
H A D | log_util.py | 82 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 D | monitor.py | 50 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 D | system_util.py | 36 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 D | build.py | 27 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 D | ninja.py | 46 LogUtil.write_log(self.config.log_path, 63 self.config.log_path, 71 self.config.log_path,
|
H A D | gn.py | 103 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 D | hpm.py | 121 SystemUtil.exec_command(hpm_build_cmd, log_path=logpath)
|
H A D | loader.py | 863 LogUtil.write_log(self.config.log_path,
|
/build/lite/ |
H A D | utils.py | 55 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 D | mylogger.py | 85 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 D | patch_process.py | 89 SystemUtil.exec_command(cmd, log_path=self.config.log_path,
|
/build/ohos/packages/ |
H A D | fs_process.py | 184 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 D | build_args_resolver.py | 232 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 D | prebuilts_download.py | 414 log_path = error_info.split()[-1] 415 cmd = ['cat', log_path]
|
/build/hb/resources/ |
H A D | config.py | 289 def log_path(self): member in Config 293 raise OHOSException(f'Failed to get log_path')
|
Completed in 8 milliseconds