Commit Graph

9 Commits

Author SHA1 Message Date
Kevin Wan
36088ea0d4
fix: avoid duplicate in logx plain mode (#4080) 2024-04-17 17:43:22 +08:00
MarkJoyMa
32600f2619
fix: adjust log encode output mode (#3676) 2023-10-28 11:46:52 +00:00
MarkJoyMa
151768ef82
feat: optimize logx print error (#3649) 2023-10-19 13:46:52 +00:00
Kevin Wan
452c9dbcaf
chore: add more tests (#3315) 2023-06-01 21:08:44 +08:00
Kevin Wan
a019a1f59f
fix: conf anonymous overlay problem (#2847) 2023-02-05 14:40:57 +08:00
Kevin Wan
74e0676617
feat: add config to truncate long log content (#2767) 2023-01-09 09:39:30 +08:00
Kevin Wan
59c0013cd1
feat: add logc package, support AddGlobalFields for both logc and logx. (#2463)
* feat: add logc package

* feat: add logc, add AddGlobalFields for both logc and logx

* chore: add benchmarks

* chore: add more tests

* chore: simplify globalFields in logx

* chore: remove outdated comments
2022-09-29 22:49:41 +08:00
Kevin Wan
6d2b9fd904
chore: improve codecov (#1878) 2022-05-08 13:17:48 +08:00
Kevin Wan
ac321fc146
feat: add fields with logx methods, support using third party logging libs. (#1847)
* backup

* simplify

* chore: remove unused pool

* chore: fix lint errors

* chore: use strings.Builder instead of bytes.Buffer

* test: add more tests

* chore: fix reviewdog

* test: fix data race

* feat: make logger customizable

* chore: fix reviewdog

* test: fix fails

* chore: fix set writer twice

* chore: use context instead of golang.org context

* chore: specify uint32 for level types
2022-05-03 17:34:26 +08:00