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

151 Commits

Author SHA1 Message Date
cddjr
1cd48f7072
fix issue #33 2022-09-14 17:36:15 +08:00
朱天龙 (Armink)
8a88610b6e
Merge pull request #124 from h3n4l/fix/default-output-color
fix: enable text color default if define macro ELOG_COLOR_ENABLE
2022-08-30 09:24:19 +08:00
h3n4l
1600a2b2b3 fix: enable text color default if define macro ELOG_COLOR_ENABLE 2022-08-30 08:56:50 +08:00
朱天龙 (Armink)
cc7a3e6d22
Merge pull request #123 from 675658/iss122
fix: 修复在关闭OUTPUT_LOCK的情况下依然会调用elog_port_output_lock函数的bug [issue 122]
2022-07-12 17:28:32 +08:00
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
2022-07-11 12:18:55 +08:00
朱天龙 (Armink)
e19d10e43c
Merge pull request #121 from FragrantRye/master
Change the buf parameter type of elog_hexdump
2022-06-27 22:49:31 +08:00
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>
2022-06-26 13:10:22 +08:00
朱天龙 (Armink)
e1fdb134db
Merge pull request #102 from dubw/master
[demo][linux] fix compile warning about old-style-declaration
2021-11-26 17:17:14 +08:00
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>
2021-11-26 15:45:52 +08:00
朱天龙 (Armink)
10d2efdeb4
Merge pull request #100 from EchoHYK/master
【修复】windows demo自动编译报错
2021-11-09 20:10:51 +08:00
echohu
199ad5f371 【修复】windows demo自动编译报错
i#
2021-11-09 18:24:12 +08:00
朱天龙 (Armink)
772c28734f
Merge pull request #96 from Ghazigq/master
更改函数名称及行号得打印顺序(便于vscode直接跳转)
2021-07-28 20:07:35 +08:00
guoqi
c8ee635861 更改函数名称及行号得打印顺序(便于vscode直接跳转) 2021-07-28 17:18:58 +08:00
朱天龙 (Armink)
9bacff022c
Merge pull request #90 from 5ooo/master
optimize async log
2021-04-08 09:30:15 +08:00
5ooo
55c326acb8 [demo][linux] optimize async log 2021-04-07 18:16:13 +08:00
朱天龙 (Armink)
e1d38c3b74
Merge pull request #89 from 5ooo/master
优化linux下elog_port_get_time函数
2021-04-02 22:56:51 +08:00
5ooo
0faf2f865e [demo][linux] optimize elog_port_get_time 2021-04-02 19:04:10 +08:00
朱天龙 (Armink)
c5bb36dc1a
Merge pull request #88 from 5ooo/master
add deinit for linux
2021-04-01 18:30:03 +08:00
5ooo
bb20ae32f6 [easylogger] [demo][linux] add deinit for linux 2021-04-01 17:47:24 +08:00
book诗意
e442625088
提高buf为空时的elog_flush() 性能 (#81)
* 先判断buf中是否有数据,再进行上锁-输出-解锁的操作,避免buf为空时的频繁上/解锁操作
2021-03-11 11:12:03 +08:00
armink
fd21dfe753 [demo][linux] Update for file plugin changes. 2020-06-27 11:17:54 +08:00
armink
100fd43233 [plugin][file] remove the access function using. 2020-06-27 11:16:54 +08:00
armink
22c9b45218 [demo] remove the windows demo unused file. 2020-06-13 23:32:12 +08:00
armink
9c49005dce [demo] update the windows demo config. 2020-06-13 23:30:25 +08:00
armink
1dc48d4016 [demo] update the windows demo README.md 2020-06-13 23:06:59 +08:00
armink
4c3a65f515 [demo] Update the windows demo porting code. Change the locker to win API. 2020-06-13 23:06:35 +08:00
armink
7447514f3e [doc] update the README.md 2020-06-13 23:03:10 +08:00
armink
b67a5257c2 [demo] Update the windows demo and support the new file plugin. 2020-06-12 23:53:38 +08:00
armink
29bc4e5ee5 [plugin/file] remove the posix API in file plugin. 2020-06-12 23:40:26 +08:00
armink
a607e1715b 【修改】软件版本号。
Signed-off-by: armink <armink.ztl@gmail.com>
2019-11-30 21:27:51 +08:00
armink
980eac7383 【完善】文档细节。
Signed-off-by: armink <armink.ztl@gmail.com>
2.2.0
2019-11-30 21:18:28 +08:00
armink
8987ab2e6b 【更新】readme 文档。
Signed-off-by: armink <armink.ztl@gmail.com>
2019-11-30 20:41:50 +08:00
朱天龙 (Armink)
7708f7693f
Merge pull request #60 from MRkuan/master
feature: add filter tag lvl fuction
2019-11-30 20:36:54 +08:00
KUAN
26ad8f19b8 feature: add filter tag lvl fuction
1. add the  filter tag lvl fuction
2. update the doc about filter tag lvl fuction
2019-11-30 20:18:00 +08:00
朱天龙 (Armink)
b596fbe205
Merge pull request #55 from tianlongqin/master
change retate function
2019-09-06 19:35:00 +08:00
tianlongqin
a9c071359f change retate function, Solve multi-process problems
Signed-off-by: tianlongqin <qtl_linux@153.com>
2019-09-06 11:39:34 +08:00
秦天龙
1ad6aedfe3
Merge pull request #1 from armink/master
updata
2019-09-06 11:08:22 +08:00
朱天龙 (Armink)
f61a9ad6d2
Merge pull request #51 from kingjason2009/issues#50
解决elog_hexdump中数据偏移地址的问题, fixed #50
2019-08-03 16:47:36 +08:00
jq
1362ff7f4e 解决elog_hexdump中数据偏移地址错误的问题 2019-08-03 16:22:32 +08:00
armink
fbdc6c23b0 【更新】软件版本号。
Signed-off-by: armink <armink.ztl@gmail.com>
2019-07-29 09:00:56 +08:00
朱天龙 (Armink)
4ba5a626fc
Merge pull request #49 from z0306c/async_output_bugfix
修复异步模式下概率性导致输出日志不完整的问题
2.1.0
2019-07-26 13:39:09 +08:00
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会保证只有在
有需要输出的内容时,才会触发后续的内容输出过程
2019-07-26 12:28:39 +08:00
armink
6734e930fd 【修正】ELOG_OUTPUT_ENABLE 未定义时存在的编译错误。感谢网友 @mojinpan 的反馈。
Signed-off-by: armink <armink.ztl@gmail.com>
2019-03-30 09:26:56 +08:00
朱天龙 (Armink)
fa7f940e0d
Merge pull request #45 from tianlongqin/master
Modify the first parameter of the lock_init function
2019-03-27 16:41:52 +08:00
qintl
58a3bde4e5 Modify the first parameter of the lock_init function
Signed-off-by: qintl <qtl_linux@163.com>
2019-03-27 00:55:06 -07:00
armink
79044bcc67 【完善】日志文件循环写入功能。
Signed-off-by: armink <armink.ztl@gmail.com>
2019-02-15 17:18:07 +08:00
朱天龙 (Armink)
4c31d95c6c
Merge pull request #39 from Jin-W-FS/master
实现了syslog形式的log-rotate
2019-02-15 15:19:27 +08:00
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.
2019-02-14 20:57:01 +08:00
armink
afabf352f3 【优化】file 插件代码细节格式,并提取 elog_file_config API。
Signed-off-by: armink <armink.ztl@gmail.com>
2019-01-10 22:46:14 +08:00
朱天龙 (Armink)
41789b3a8f
Merge pull request #37 from tianlongqin/master
add plugin file
2019-01-10 16:55:22 +08:00