Commit Graph

6 Commits (44d347d48ad5103e0216a63920cf4bffbf69106f)

Author SHA1 Message Date
Kevin Wan 60a13f1e53
chore: add more tests (#3018) 2 years ago
Kevin Wan 74e0676617
feat: add config to truncate long log content (#2767) 2 years ago
MarkJoyMa e6aa6fc361
feat: add log debug level (#2411) 2 years ago
Kevin Wan 34eb3fc12e
chore: refactoring logx (#2181) 2 years ago
Kevin Wan 69c2bad410
feat: logx with color (#1872)
* feat: logx with color

* chore: update logs

* fix test error

* chore: change colors of http codes

* chore: add comments

* chore: use faith/color instead of ascii code color

* chore: update colors

* chore: update colors

* chore: fix duplicated slowcall text

* chore: remove slowcall colors
3 years ago
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
3 years ago