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
|
2 years ago |
MarkJoyMa
|
e6aa6fc361
|
feat: add log debug level (#2411)
|
2 years ago |
Kevin Wan
|
0b1884b6bd
|
feat: support caller skip in logx (#2401)
* feat: support caller skip in logx
* chore: remove debug prints
* chore: remove debug prints
* chore(deps): bump go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc (#2402)
Bumps [go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc](https://github.com/open-telemetry/opentelemetry-go) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.9.0...v1.10.0)
---
updated-dependencies:
- dependency-name: go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore: simplify test code
* chore: remove new WithFields in logx, and deprecated old WithFields
* chore: simplify WithDuration
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
|
2 years ago |
Kevin Wan
|
d935c83a54
|
feat: support baggage propagation in httpc (#2375)
* feat: support baggage propagation in httpc
* chore: use go 1.16
* chore: use go 1.16
* chore: use go ^1.16
* chore: remove deprecated
|
2 years ago |
Kevin Wan
|
2d60f0c65a
|
fix: logx disable not working in some cases (#2306)
* fix: logx disable not working in some cases
* fix: test fail
|
2 years ago |
Kevin Wan
|
9b334b5428
|
chore: let logx.SetWriter can be called anytime (#2186)
|
2 years ago |
Kevin Wan
|
7868bdf660
|
Chore/goctl version (#1962)
* chore: update version to v1.3.7
* docs: update migrate versions
* chore: remove debug prints
* chore: remove debug prints
|
3 years ago |
Kevin Wan
|
e80a64fa67
|
feat: support WithStreamClientInterceptor for zrpc clients (#1907)
* feat: support WithStreamClientInterceptor for zrpc clients
* fix: data race
|
3 years ago |
Kevin Wan
|
a36d58aac9
|
fix time, duration, slice types on logx.Field (#1868)
* chore: refine tests
* fix #1866
|
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 |
Kevin Wan
|
259a5a13e7
|
chore: fix data race (#1593)
|
3 years ago |
Kevin Wan
|
bf2feee5b7
|
feat: implement console plain output for debug logs (#1456)
* feat: implement console plain output for debug logs
* chore: rename console encoding to plain
* chore: refactor names
|
3 years ago |
Kevin Wan
|
de5ed6a677
|
feat: support %w in logx.Errorf (#1278)
|
3 years ago |
Kevin Wan
|
fbf2eebc42
|
add Errorv/Infov/Slowv (#909)
|
3 years ago |
Kevin Wan
|
872e75e10d
|
add logx.DisableStat() to disable stat logs (#893)
* add logx.DisableStat() to disable stat logs
* refactor logx code
|
3 years ago |
kevin
|
695ea69bfc
|
add logx.Alert
|
4 years ago |
kevin
|
fe3739b7f3
|
fix golint issues
|
4 years ago |
kevin
|
3733b06f1b
|
fix data race in tests
|
4 years ago |
kevin
|
6db294b5cc
|
add more tests
|
4 years ago |
kevin
|
ce42281568
|
add more tests
|
4 years ago |
kevin
|
8745039877
|
move lang.Must into logx.Must to make sure output fatal message as json
|
4 years ago |
kevin
|
c57051ce63
|
use strings.Contains instead of strings.Index
|
4 years ago |
kevin
|
7e3a369a8f
|
initial import
|
4 years ago |