TSG-14484 Pxoxy支持Maat4

This commit is contained in:
fengweihao
2023-03-29 17:34:26 +08:00
parent 2744f2460c
commit bf1d968eaf
16 changed files with 313 additions and 638 deletions

View File

@@ -46,7 +46,7 @@ extern void mesa_logging_print(int log_level, const char *module, const char *ms
#define mesa_runtime_log(level, module, ...) mesa_log(logging_sc_lid.debug_switch, level, module, __VA_ARGS__)
void cert_store_syslog_init(const char *config, const char * version);
void load_log_module(const char *config, const char * version);
void cert_store_log_reconstruction();
#endif

View File

@@ -36,15 +36,12 @@ void cert_store_log_reconstruction()
MESA_handle_runtime_log_reconstruction(NULL);
}
void cert_store_syslog_init(const char *config, const char * version)
void load_log_module(const char *config, const char * version)
{
struct breakpad_instance *breakpad;
MESA_load_profile_int_def(config, (const char *)"SYSTEM",(const char *)"DEBUG_SWITCH",
&logging_sc_lid.debug_switch, 1);
MESA_load_profile_string_def(config, (const char *)"SYSTEM",(const char *)"RUN_LOG_PATH",
logging_sc_lid.run_log_path, 128, "conf/zlog.conf");
MESA_load_profile_int_def(config, (const char *)"SYSTEM",(const char *)"DEBUG_SWITCH", &logging_sc_lid.debug_switch, 1);
MESA_load_profile_string_def(config, (const char *)"SYSTEM",(const char *)"RUN_LOG_PATH", logging_sc_lid.run_log_path, 128, "conf/zlog.conf");
if (0 != MESA_handle_runtime_log_creation(logging_sc_lid.run_log_path))
{
fprintf(stderr, "Create log runtime_log_handle error, init failed\n");