148 Commits (cc7a3e6d22ae3e1a831d4f7d9fe13b725d6a92da)
 

Author SHA1 Message Date
朱天龙 (Armink) cc7a3e6d22
Merge pull request #123 from 675658/iss122
fix: 修复在关闭OUTPUT_LOCK的情况下依然会调用elog_port_output_lock函数的bug [issue 122]
3 years ago
Chen Jihang 0869689c3d fix: 修复在关闭OUTPUT_LOCK的情况下依然会调用elog_port_output_lock函数的bug [issue 122]
在elog.c中的elog_get_filter_tag_lvl函数以及elog_set_filter_tag_lvl函数中错误地使用了elog_port_output_lock函数导致在关闭output lock的情况下仍然会锁定输出却无法解锁

解决:将elog_get_filter_tag_lvl和elog_set_filter_tag_lvl函数中的elog_port_output_lock函数改为elog_output_lock函数

issue #122
close #122
3 years ago
朱天龙 (Armink) e19d10e43c
Merge pull request #121 from FragrantRye/master
Change the buf parameter type of elog_hexdump
4 years ago
FragrantRye 3d95192f58 Change the buf parameter type of elog_hexdump
Change the 'buf' parameter type from uint8_t* to const void*.

Signed-off-by: FragrantRye <903465575@qq.com>
4 years ago
朱天龙 (Armink) e1fdb134db
Merge pull request #102 from dubw/master
[demo][linux] fix compile warning about old-style-declaration
4 years ago
dubaowei 0221c43648 [demo][linux] fix compile warning about old-style-declaration
In gcc 7.3.0, we encountered a warning error when compiling

	elog_file_port.c:76:1: warning: ‘inline’ is not at beginning of declaration [-Wold-style-declaration]

Put 'inline' in front of 'void' can fix it

Signed-off-by: dubaowei <dubaowei@cetc.com>
4 years ago
朱天龙 (Armink) 10d2efdeb4
Merge pull request #100 from EchoHYK/master
【修复】windows demo自动编译报错
4 years ago
echohu 199ad5f371 【修复】windows demo自动编译报错
i#
4 years ago
朱天龙 (Armink) 772c28734f
Merge pull request #96 from Ghazigq/master
更改函数名称及行号得打印顺序(便于vscode直接跳转)
4 years ago
guoqi c8ee635861 更改函数名称及行号得打印顺序(便于vscode直接跳转) 4 years ago
朱天龙 (Armink) 9bacff022c
Merge pull request #90 from 5ooo/master
optimize async log
5 years ago
5ooo 55c326acb8 [demo][linux] optimize async log 5 years ago
朱天龙 (Armink) e1d38c3b74
Merge pull request #89 from 5ooo/master
优化linux下elog_port_get_time函数
5 years ago
5ooo 0faf2f865e [demo][linux] optimize elog_port_get_time 5 years ago
朱天龙 (Armink) c5bb36dc1a
Merge pull request #88 from 5ooo/master
add deinit for linux
5 years ago
5ooo bb20ae32f6 [easylogger] [demo][linux] add deinit for linux 5 years ago
book诗意 e442625088
提高buf为空时的elog_flush() 性能 (#81)
* 先判断buf中是否有数据,再进行上锁-输出-解锁的操作,避免buf为空时的频繁上/解锁操作
5 years ago
armink fd21dfe753 [demo][linux] Update for file plugin changes. 6 years ago
armink 100fd43233 [plugin][file] remove the access function using. 6 years ago
armink 22c9b45218 [demo] remove the windows demo unused file. 6 years ago
armink 9c49005dce [demo] update the windows demo config. 6 years ago
armink 1dc48d4016 [demo] update the windows demo README.md 6 years ago
armink 4c3a65f515 [demo] Update the windows demo porting code. Change the locker to win API. 6 years ago
armink 7447514f3e [doc] update the README.md 6 years ago
armink b67a5257c2 [demo] Update the windows demo and support the new file plugin. 6 years ago
armink 29bc4e5ee5 [plugin/file] remove the posix API in file plugin. 6 years ago
armink a607e1715b 【修改】软件版本号。
Signed-off-by: armink <armink.ztl@gmail.com>
6 years ago
armink 980eac7383 【完善】文档细节。
Signed-off-by: armink <armink.ztl@gmail.com>
6 years ago
armink 8987ab2e6b 【更新】readme 文档。
Signed-off-by: armink <armink.ztl@gmail.com>
6 years ago
朱天龙 (Armink) 7708f7693f
Merge pull request #60 from MRkuan/master
feature: add filter tag lvl fuction
6 years ago
KUAN 26ad8f19b8 feature: add filter tag lvl fuction
1. add the  filter tag lvl fuction
2. update the doc about filter tag lvl fuction
6 years ago
朱天龙 (Armink) b596fbe205
Merge pull request #55 from tianlongqin/master
change retate function
6 years ago
tianlongqin a9c071359f change retate function, Solve multi-process problems
Signed-off-by: tianlongqin <qtl_linux@153.com>
6 years ago
秦天龙 1ad6aedfe3
Merge pull request #1 from armink/master
updata
6 years ago
朱天龙 (Armink) f61a9ad6d2
Merge pull request #51 from kingjason2009/issues#50
解决elog_hexdump中数据偏移地址的问题, fixed #50
6 years ago
jq 1362ff7f4e 解决elog_hexdump中数据偏移地址错误的问题 6 years ago
armink fbdc6c23b0 【更新】软件版本号。
Signed-off-by: armink <armink.ztl@gmail.com>
6 years ago
朱天龙 (Armink) 4ba5a626fc
Merge pull request #49 from z0306c/async_output_bugfix
修复异步模式下概率性导致输出日志不完整的问题
6 years ago
Zhao Chong bd2281e935 修复异步模式下概率性导致输出日志不完整的问题
Summary:
[背景]:异步输出模式开启、断言开启,elog_async.c在初始化时,elog_async_init创建子线程完成后,
子线程处理函数async_output在一开始会对全局变量init_ok进行断言,如果为false,那么就无法进入
后续sem_wait流程,进行结果输出了;而init_ok是在子线程创建完之后,elog_async_init最后才设置
为true的,这样程序的正确执行就取决于父子线程的调度顺序了
[解决办法]:子线程的处理程序中无需对init_ok进行判断,因为在while循环体中sem_wait会保证只有在
有需要输出的内容时,才会触发后续的内容输出过程
6 years ago
armink 6734e930fd 【修正】ELOG_OUTPUT_ENABLE 未定义时存在的编译错误。感谢网友 @mojinpan 的反馈。
Signed-off-by: armink <armink.ztl@gmail.com>
7 years ago
朱天龙 (Armink) fa7f940e0d
Merge pull request #45 from tianlongqin/master
Modify the first parameter of the lock_init function
7 years ago
qintl 58a3bde4e5 Modify the first parameter of the lock_init function
Signed-off-by: qintl <qtl_linux@163.com>
7 years ago
armink 79044bcc67 【完善】日志文件循环写入功能。
Signed-off-by: armink <armink.ztl@gmail.com>
7 years ago
朱天龙 (Armink) 4c31d95c6c
Merge pull request #39 from Jin-W-FS/master
实现了syslog形式的log-rotate
7 years ago
Jin-W-FS 1507a7b611 Support log-rotate.
rotate each xxx.log.n-1 to xxx.log.n(n < local_cfg.max_rotate), and xxx.log to
xxx.log.0 when xxx.log achieves local_cfg.max_size and local_cfg.max_rotate > 0.
7 years ago
armink afabf352f3 【优化】file 插件代码细节格式,并提取 elog_file_config API。
Signed-off-by: armink <armink.ztl@gmail.com>
7 years ago
朱天龙 (Armink) 41789b3a8f
Merge pull request #37 from tianlongqin/master
add plugin file
7 years ago
qintl 0847b18c59 Merge branch 'master' of https://github.com/tianlongqin/EasyLogger 7 years ago
qintl cee83af21c File plugin details processing
Signed-off-by: qintl <qintl@yytek.com>
7 years ago
tianlongqin 27c26903fe
Update README.md 7 years ago