1、调整自动生成的zlog.conf格式
2、更新gitignore内容,增加手动build目录
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -12,6 +12,7 @@ core.*
|
|||||||
version.txt
|
version.txt
|
||||||
demo/test_handle_logger
|
demo/test_handle_logger
|
||||||
cmake-build-debug
|
cmake-build-debug
|
||||||
|
build-*/
|
||||||
GPATH
|
GPATH
|
||||||
GRTAGS
|
GRTAGS
|
||||||
GTAGS
|
GTAGS
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ int main(int argc, char ** args)
|
|||||||
printf("Error, wrong parameter!\n");
|
printf("Error, wrong parameter!\n");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
sample_handle = MESA_create_runtime_log_handle("./log/test_log", RLOG_LV_DEBUG);
|
sample_handle = MESA_create_runtime_log_handle("./log/sample_log", RLOG_LV_DEBUG);
|
||||||
if (sample_handle == NULL)
|
if (sample_handle == NULL)
|
||||||
{
|
{
|
||||||
printf("get log sample_handle error\n");
|
printf("get log sample_handle error\n");
|
||||||
|
|||||||
@@ -181,6 +181,7 @@ void MESA_destroy_runtime_log_handle(void *handle)
|
|||||||
if(handle != NULL)
|
if(handle != NULL)
|
||||||
{
|
{
|
||||||
log_handle_t *p_handle = (log_handle_t *)handle;
|
log_handle_t *p_handle = (log_handle_t *)handle;
|
||||||
|
zlog_fini();
|
||||||
free(handle);
|
free(handle);
|
||||||
handle = NULL;
|
handle = NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user