Commit Graph

97 Commits (ea7dab3d26ccba0977cd38efa4fc4decd097bbd9)

Author SHA1 Message Date
Kevin Wan a019a1f59f
fix: conf anonymous overlay problem (#2847) 2 years ago
Kevin Wan ae87114282
chore: change interface{} to any (#2818)
* chore: change interface{} to any

* chore: update goctl version to 1.5.0

* chore: update goctl deps
2 years ago
Kevin Wan 32a59dbc27
chore: refactor func name (#2804)
* chore: refactor func name

* chore: make plain log clearer
2 years ago
Kevin Wan 74e0676617
feat: add config to truncate long log content (#2767) 2 years ago
Kevin Wan e52dace416
chore: refactor (#2764) 2 years ago
chen quan dc260f196a
refactor: simplify the code (#2763)
* refactor: simplify the code

* fix: fix data race

* refactor: simplify the code

* refactor: simplify the code
2 years ago
Kevin Wan 036328f1ea
chore: update tests (#2741)
* chore: update tests

* chore: codecov on comments

* chore: codecov on comments
2 years ago
Xargin 1c544a26be
use stat instead of disableStat (#2740) 2 years ago
chainlife 20a61ce43e
logx conf add DisableStat (#2434)
Co-authored-by: sunsoft <sunsoft@qq.com>
2 years ago
Kevin Wan 9941055eaa
feat: add trace.SpanIDFromContext and trace.TraceIDFromContext (#2654) 2 years ago
edieruby b1c3c21c81
fix: log currentSize should not be 0 when file exists and size is not 0 (#2639) 2 years ago
Kevin Wan 7eb6aae949
fix: potential slice append issue (#2560) 2 years ago
Kevin Wan 06e4914e41
feat: add logger.WithFields (#2546) 2 years ago
Kevin Wan d4c9fd2aff
chore: add golangci-lint config file (#2519)
* chore: add golangci-lint config file

* chore: member alignment
2 years ago
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
chen quan 2e1e4f3574
feat: add color to debug (#2433) 2 years ago
Kevin Wan 22d0a2120a
chore: replace fmt.Fprint (#2425) 2 years ago
chen quan 68e15360c2
fix: fix log output (#2424) 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 dfeef5e497
fix: thread-safe in getWriter of logx (#2319) 2 years ago
Archer 8c72136631
make logx#getWriter concurrency-safe (#2233)
* make logx#getWriter concurrency-safe

* make logx#getWriter concurrency-safe
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
chen quan 847a396f1c
fix(logx): display garbled characters in windows(DOS, Powershell) (#2232)
* fix(logx): display garbled characters in windows(DOS, Powershell)

* Update writer.go
2 years ago
Kevin Wan 05dd6bd743
chore: refactor logx (#2262) 2 years ago
chen quan 4fad067a0e
fix(logx): need to wait for the first caller to complete the execution. (#2213) 2 years ago
Kevin Wan 5cd9229986
fix: only setup logx once (#2188)
* fix: only setup logx once

* fix: test failure

* chore: not reset logging level in reset

* chore: refactoring
2 years ago
施国鹏 3d38d36605
fix: logx test foo (#2144)
constant testlog "Stay hungry, stay foolish." contains foo(foolish), changed to foo1
2 years ago
Kevin Wan 9b334b5428
chore: let logx.SetWriter can be called anytime (#2186) 2 years ago
Kevin Wan 92145b56dc
chore: refactoring (#2182) 2 years ago
Kevin Wan 34eb3fc12e
chore: refactoring logx (#2181) 2 years ago
SgtDaJim 101304be53
feat: logx support logs rotation based on size limitation. (#1652) (#2167)
* feat: logx support logs rotation based on size limitation. (#1652)

implementation of #1652

Totally compatible with the old logx.LogConf. No effect if users do not change their options.

* feat: logx support logs rotation based on size limitation. (#1652)

implementation of #1652

Totally compatible with the old logx.LogConf. No effect if users do not change their options.

* feat: logx support logs rotation based on size limitation. (#1652)

implementation of #1652

Totally compatible with the old logx.LogConf. No effect if users do not change their options.

* feat: logx support logs rotation based on size limitation. (#1652)

implementation of #1652

Totally compatible with the old logx.LogConf. No effect if users do not change their options.
2 years ago
Kevin Wan 24787a946b
feat: support logx.WithFields (#2128) 2 years ago
Kevin Wan 1d95e95cf8
chore: make methods consistent in signatures (#1971)
* chore: make methods consistent in signatures

* test: fix fails
3 years ago
Kevin Wan c44edd7cac
test: fix fails (#1970) 3 years ago
Kevin Wan af05219b70
test: make tests stable (#1968)
* test: make tests stable

* test: fix fails
3 years ago
Kevin Wan 6c94e4652e
chore: better mongo logs (#1965)
* chore: better mongo logs

* chore: add comments
3 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 bb33a20bc8
Update readme-cn.md 3 years ago
Kevin Wan 5536473a08
Update readme.md 3 years ago
Kevin Wan 30958a91f7
docs: add docs for logx (#1960) 3 years ago
Kevin Wan 321a20add6
chore: update roadmap (#1948) 3 years ago
chen quan fd12659729
chore: add release action to auto build binaries (#1884)
* chore: add release action to auto build binaries

Signed-off-by: chenquan <chenquan.dev@gmail.com>

* fix: test bugs

Signed-off-by: chenquan <chenquan.dev@gmail.com>
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 6d2b9fd904
chore: improve codecov (#1878) 3 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 d0a59b13a6
chore: fix deprecated usages (#1871)
* add conf documents

* chore: use {} instead of () for environment variables

* chore: fix deprecated usages

* chore: fix unstable tests

* chore: show stack on github actions
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 aa5118c2aa
chore: refine tests (#1864) 3 years ago