[demo][linux] Update for file plugin changes.

pull/78/head
armink 6 years ago
parent 100fd43233
commit fd21dfe753

@ -1,14 +1,13 @@
CC = cc CC = cc
ROOTPATH=../../.. ROOTPATH=../../..
INCLUDE = -I./easylogger/inc -I./easylogger/plugins/ -I$(ROOTPATH)/easylogger/plugins/ -I$(ROOTPATH)/easylogger/inc INCLUDE = -I./easylogger/inc -I$(ROOTPATH)/easylogger/inc -I$(ROOTPATH)/easylogger/plugins/file
LIB=-lpthread LIB=-lpthread
OBJ += $(patsubst %.c, %.o, $(wildcard *.c)) OBJ += $(patsubst %.c, %.o, $(wildcard *.c))
OBJ += $(patsubst %.c, %.o, $(wildcard $(ROOTPATH)/easylogger/src/*.c)) OBJ += $(patsubst %.c, %.o, $(wildcard $(ROOTPATH)/easylogger/src/*.c))
OBJ += $(patsubst %.c, %.o, $(wildcard $(ROOTPATH)/easylogger/plugins/file/elog_file.c)) OBJ += $(patsubst %.c, %.o, $(wildcard $(ROOTPATH)/easylogger/plugins/file/elog_file.c))
OBJ += $(patsubst %.c, %.o, $(wildcard easylogger/port/*.c)) OBJ += $(patsubst %.c, %.o, $(wildcard easylogger/port/*.c))
OBJ += $(patsubst %.c, %.o, $(wildcard easylogger/plugins/file/*.c))
CFLAGS = -O0 -g3 -Wall CFLAGS = -O0 -g3 -Wall
target = EasyLoggerLinuxDemo target = EasyLoggerLinuxDemo

@ -33,9 +33,9 @@
#define ELOG_FILE_NAME "/tmp/elog_file.log" #define ELOG_FILE_NAME "/tmp/elog_file.log"
/* EasyLogger file log plugin's using file max size */ /* EasyLogger file log plugin's using file max size */
#define ELOG_FILE_MAX_SIZE (10 * 1024 * 1024) #define ELOG_FILE_MAX_SIZE (1 * 1024 * 1024)
/* EasyLogger file log plugin's using max rotate file count */ /* EasyLogger file log plugin's using max rotate file count */
#define ELOG_FILE_MAX_ROTATE 10 #define ELOG_FILE_MAX_ROTATE 5
#endif /* _ELOG_FILE_CFG_H_ */ #endif /* _ELOG_FILE_CFG_H_ */

@ -35,8 +35,8 @@
#include <unistd.h> #include <unistd.h>
#include <file/elog_file.h> #include <elog_file.h>
#include <file/elog_file_cfg.h> #include <elog_file_cfg.h>
#define ELOG_FILE_SEM_KEY ((key_t)0x19910612) #define ELOG_FILE_SEM_KEY ((key_t)0x19910612)
#ifdef _SEM_SEMUN_UNDEFINED #ifdef _SEM_SEMUN_UNDEFINED

@ -33,7 +33,7 @@
#include <time.h> #include <time.h>
#ifdef ELOG_FILE_ENABLE #ifdef ELOG_FILE_ENABLE
#include <file/elog_file.h> #include <elog_file.h>
#endif #endif
static pthread_mutex_t output_lock; static pthread_mutex_t output_lock;

Loading…
Cancel
Save