1
0
mirror of https://github.com/armink/EasyLogger.git synced 2025-01-31 13:32:52 +08:00

Merge pull request #154 from aliliao/dev

elog_file: 添加编译宏控制
This commit is contained in:
朱天龙 (Armink) 2024-02-17 21:09:53 +08:00 committed by GitHub
commit 8bae92efdf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View File

@ -35,6 +35,8 @@
#include "elog_file.h"
#ifdef ELOG_FILE_ENABLE
/* initialize OK flag */
static bool init_ok = false;
static FILE *fp = NULL;
@ -175,3 +177,5 @@ void elog_file_config(ElogFileCfg *cfg)
elog_file_port_unlock();
}
#endif /* ELOG_FILE_ENABLE */

View File

@ -56,13 +56,13 @@
#define ELOG_ASYNC_POLL_GET_LOG_BUF_SIZE (ELOG_LINE_BUF_SIZE - 4)
#endif
#endif
#endif /* ELOG_ASYNC_OUTPUT_USING_PTHREAD */
#endif /* ELOG_ASYNC_OUTPUT_PTHREAD_STACK_SIZE */
/* asynchronous output log notice */
static sem_t output_notice;
/* asynchronous output pthread thread */
static pthread_t async_output_thread;
#endif /* ELOG_ASYNC_OUTPUT_ENABLE */
#endif /* ELOG_ASYNC_OUTPUT_USING_PTHREAD */
/* the highest output level for async mode, other level will sync output */
#ifdef ELOG_ASYNC_OUTPUT_LVL