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
Kevin Wan
bab72b7630
chore: use time.Now() instead of timex.Time() because go optimized it ( #1860 )
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
914692cc82
fix #1309 ( #1317 )
3 years ago
Kevin Wan
de5ed6a677
feat: support %w in logx.Errorf ( #1278 )
3 years ago
Kevin Wan
fa4dc151ca
test: add more tests ( #1134 )
3 years ago
Kevin Wan
10e7922597
feat: opentelemetry integration, removed self designed tracing ( #1111 )
...
* feat: opentelemetry integration, removed self designed tracing
* feat: support zipkin on opentelemetry integration
* feat: support zipkin on opentelemetry integration, enable it in conf
* style: format code
* fix: support logx without exporter configured
* fix: check return values
* refactor: simplify code
* refactor: simplify opentelemetry integration
* ci: fix staticcheck errors
3 years ago
Kevin Wan
ed15ca04f4
fix: opentelemetry traceid not correct ( #1108 )
3 years ago
Kevin Wan
65905b914d
ci: add reviewdog ( #1096 )
3 years ago
Kevin Wan
872c50b71a
chore: make comment accurate ( #1055 )
3 years ago
Kevin Wan
f4bb9f5635
fix test error on ubuntu ( #1048 )
3 years ago
Kevin Wan
10805577f5
reorg imports, format code ( #1000 )
3 years ago
SunJun
a4d8286e36
开启otel后,tracelog自动获取otle的traceId和spanId ( #946 )
...
* 开启otel后,tracelog自动获取otle的traceId和spanId
* 去除opentelemetry判断
* 通过 IsRecording 判断span是否活跃
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
Bo-Yi Wu
73906f996d
chore(format): change by gofumpt tool ( #697 )
...
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
4 years ago
Bo-Yi Wu
afd9ff889e
chore: update code format. ( #628 )
4 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 Wan
5e969cbef0
fix golint issues, else blocks ( #457 )
4 years ago
wayne
ec2a9f2c57
fix tracelogger_test TestTraceLog ( #271 )
4 years ago
kevin
695ea69bfc
add logx.Alert
4 years ago
kevin
fe3739b7f3
fix golint issues
4 years ago
kevin
c32759d735
make tests race-free
4 years ago
kevin
be39133dba
fix data race in tests
4 years ago
kevin
3733b06f1b
fix data race in tests
4 years ago
kevin
09b7625f06
add more tests
4 years ago
kevin
6db294b5cc
add more tests
4 years ago
kevin
ce42281568
add more tests
4 years ago
kevin
40230d79e7
fix data race
4 years ago
kevin
ba7851795b
add more tests
4 years ago
kevin
be9c48da7f
add tracing logs in server side and client side
4 years ago
kevin
797a90ae7d
remove unnecessary tag
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
c57051ce63
use strings.Contains instead of strings.Index
4 years ago
kevin
0a7e0cce77
update package reference
4 years ago
kevin
7e3a369a8f
initial import
4 years ago