Commit Graph

10 Commits

Author SHA1 Message Date
qzywyd@163.com 08bbc96fbf add replace hook method and remove lock method 2021-09-12 16:47:26 +08:00
li wei 7207a92697
Update logger_test.go
Remove unnecessary comments
2021-09-01 21:35:15 +08:00
li wei 659b3d3ba8
Update logger_test.go
Remove unnecessary comments
2021-09-01 21:34:26 +08:00
liwei b9589019f7 add lock function 2021-08-11 10:54:10 +08:00
liwei ca79890a05 add lock function 2021-08-11 10:48:35 +08:00
Qingshan Luo 1818363d79 Add support for the logger private buffer pool. 2021-04-20 10:48:30 +08:00
David Bariod ac6e35b4c2 fix for entry data field race condition 2021-02-16 10:31:51 +01:00
Edward Muller 46015a925f
test the error to ensure there isn't an unexpected error in the test 2019-10-13 17:48:58 -07:00
Jiang Xin f61e48bb8e logger: fix wrong callback method
Fix wrong callback in `logger.go`, and add test cases:

1. `logger.Warningln` should call `logger.Warnln`, not `logger.Warn`.

2. It's ok for `logger.Print` to call `entry.Info`, but calling `entry.Print`
   is better.

Signed-off-by: Jiang Xin <zhiyou.jx@alibaba-inc.com>
2019-01-22 20:46:10 +08:00
David Bariod 7b467df697 Skip func type value in fields.
We skip those unprintable fields and an error field
instead of dropping the whole trace.

Fixes #642
2018-09-30 22:51:02 +02:00