1、调整自动生成的zlog.conf格式

2、更新gitignore内容,增加手动build目录
This commit is contained in:
“yangwei”
2019-09-04 11:47:33 +08:00
parent 49822347cb
commit 117720197e
3 changed files with 4 additions and 2 deletions

View File

@@ -151,7 +151,7 @@ void *MESA_create_runtime_log_handle(const char *file_path, int level)
if(fp == NULL)return NULL;
char zlog_rule_conf_content[MAX_HANDLE_LOG_PATH + 1];
snprintf(zlog_rule_conf_content, sizeof(zlog_rule_conf_content),
"[global] \n default format = \"%%d(%%c), %%V, %%m%%n\" \n[levels]\n DEBUG=10\n INFO=20\n FATAL=30\n[rules]\n %s.* \"%s.%%d(%%F)\"",
"[global]\ndefault format = \"%%d(%%c), %%V, %%m%%n\" \n[levels]\nDEBUG=10\nINFO=20\nFATAL=30\n[rules]\n %s.* \"%s.%%d(%%F)\"",
p_name, file_path);
fwrite(zlog_rule_conf_content, strlen(zlog_rule_conf_content), 1, fp);
fclose(fp);
@@ -181,6 +181,7 @@ void MESA_destroy_runtime_log_handle(void *handle)
if(handle != NULL)
{
log_handle_t *p_handle = (log_handle_t *)handle;
zlog_fini();
free(handle);
handle = NULL;
}