mirror of
https://github.com/armink/EasyLogger.git
synced 2025-01-31 13:32:52 +08:00
commit
8bae92efdf
@ -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 */
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user