MarkJoyMa
4cbfdb3d74
feat: optimize must log add stack ( #3384 )
1 year ago
Kevin Wan
92e5819e91
opt: improve logx performance ( #3371 )
1 year ago
Kevin Wan
b028ed058d
chore: change port to 6060 by default in devserver ( #3191 )
2 years ago
Kevin Wan
60a13f1e53
chore: add more tests ( #3018 )
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
74e0676617
feat: add config to truncate long log content ( #2767 )
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
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
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
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
Kevin Wan
9b334b5428
chore: let logx.SetWriter can be called anytime ( #2186 )
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
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
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
5bcee4cf7c
fix #1806 ( #1833 )
...
* fix #1806
* chore: refine error text
3 years ago
Kevin Wan
259a5a13e7
chore: fix data race ( #1593 )
3 years ago
Fyn
cf7c7cb392
build: update goctl dependency ddl-parser to v1.0.3 ( #1586 )
...
* build: update goctl dependency ddl-parser to v1.0.3
* fix: race condition when testing logx
Resolves : #1587
3 years ago
Kevin Wan
cf4321b2d0
fix #1525 ( #1527 )
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
a91c3907a8
feat: rename module from tal-tech to zeromicro ( #1413 )
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
1fb356f328
refactor goctl ( #902 )
3 years ago
市民233
0b0406f41a
fix: 解决golint 部分警告 ( #897 )
...
* feat: 解决goreportcard的警报
ps: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
* feat: 优化golint警告,将processFieldPrimitiveWithJsonNumber 改成 processFieldPrimitiveWithJSONNumber
unmarshaler.go:248:23: method processFieldPrimitiveWithJsonNumber should be processFieldPrimitiveWithJSONNumber
* feat: 添加 WithCanonicalKeyFunc 注释
* feat: 添加DisableStat的注释
* feat: 添加 RegisterGoctlHome 注释
* feat: 添加 PostgreSqlJoin 注释
* feat: 解决goline警告should not use basic type string as key in context.WithValue问题
* feat: 解决golint警告信息: should not use basic type string as key in context.WithValue
* fix: 定义自定义字段类型,导致go test fail 问题
* update: 恢复原有测试用例
* fix golint warning
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 Wan
c0db8d017d
gofmt logs ( #574 )
4 years ago
TonyWang
52b4f8ca91
add timezone and timeformat ( #572 )
...
* add timezone and timeformat
* rm time zone and keep time format
Co-authored-by: Tony Wang <tonywang.data@gmail.com>
4 years ago
Kevin Wan
56ad4776d4
fix misspelling ( #513 )
4 years ago
Kevin Wan
226513ed60
fix golint issues in core/logx ( #496 )
4 years ago
kevin
695ea69bfc
add logx.Alert
4 years ago
kevin
be9c48da7f
add tracing logs in server side and client side
4 years ago
kevin
f3c367a323
add fatal to stderr
4 years ago
kevin
8745039877
move lang.Must into logx.Must to make sure output fatal message as json
4 years ago
kevin
0a7e0cce77
update package reference
4 years ago
kevin
7e3a369a8f
initial import
4 years ago