Miguel Martínez Triviño
0f38511ea8
fix(filter): filter out keyvals if keyFunc is provided ( #2484 )
2 years ago
Jesse
a911f8f9ee
fix(log): toString float32 precision loss and convert uint use `FormatUint` ( #2461 )
...
* fix(log): toString float32 precision loss
* convert uint to string
2 years ago
jesse.tang
9737a3c5e4
fix: typo and grammatical errors ( #2368 )
...
* fix: grammar
* fix: grammar
* fix overrode
* translate to English
* translate to English
2 years ago
Tony Chen
2d206076f8
fix logger caller depth ( #2283 )
2 years ago
Haibo
6d665c0ce6
fix: wrong order of Logger prefix kvs ( #2273 )
2 years ago
SeniorPlayer
b9b7888d51
fix(log): DefaultCaller doesn't returns "pkg/file:line", it returns "file:line" now. For example, both biz/user.go and data/user.go are printed as user.go in logger. It's not clear. ( #2274 )
...
Co-authored-by: SeniorPlayer <SeniorPlayer@gg.com>
2 years ago
realityone
f0c2a6ed90
Global logger ( #2265 )
...
* global logger
* return global logger appliance instead of inner logger
* fix lint issues
* global logger test
2 years ago
jakezhu9
85af73a84b
test(log): increase tests coverage ( #2197 )
3 years ago
Betula-L
e09d294388
feat: add logrus to contrib log ( #2077 )
...
* add logrus to contrib log
* add readme
* fix test
* fix lint
* fix lint
* fix lint
3 years ago
Tony Chen
97c103a395
fix with logger ( #2062 )
...
* fix with logger
3 years ago
Tony Chen
dccee86141
log: remove component logger to use global logger ( #2061 )
...
* remove component logger to user global logger
3 years ago
longxboy
944d480f78
feat:add context for log ( #2041 )
...
* add context
3 years ago
Tony Chen
79497dd3a5
log: fix global logger ( #2034 )
...
* log: fix global logger
3 years ago
songzhibin97
2eb615b38a
style:log ( #2014 )
3 years ago
Elric Li
eb2dcae83d
feat(log): Helper implemented io.Writer ( #1927 )
...
* feat(log): Add writerWrapper implementing io.Writer
* fix(kratos): fix format has wrong type
* fix(log): rename writerOption to WriterOptionFn.
3 years ago
Cluas
13208d7908
fix(log): FilterFunc keyvals lost logger prefix ( #1901 )
3 years ago
Cluas
d4c0c57681
feat(log): log load config only when Debug level ( #1899 )
3 years ago
Tony Chen
51fb0e0440
fix(log): call depth ( #1885 )
...
* fix log caller
3 years ago
Chen Xinyuan
4387085047
fix: fix some typos ( #1869 )
3 years ago
haiyux
9dec67bddd
update contrib readme ( #1831 )
3 years ago
haiyux
9bf178b1d1
fix:fix log caller error ( #1773 )
...
* fix:fix log caller error
3 years ago
realityone
83fad75c0f
make logger appliance as logger proxy ( #1765 )
3 years ago
MARATRIX Li
c6c5e4595c
optimization: optimize global logger ( #1763 )
3 years ago
realityone
0ed2e0f379
feat(log): add global logger appliance, as process level default logger ( #1761 )
...
* add global logger appliance, as process level default logger
* replace DefaultLogger as global logger
3 years ago
haiyux
1c3185f9e5
readme:add log third party log library readme ( #1753 )
3 years ago
Eng Zer Jun
77b16286f8
refactor: move from io/ioutil to io and os packages ( #1633 )
...
The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil . This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
3 years ago
海雨
7cd9503b95
test: add log test ( #1576 )
...
* test: add log test
* fix
* fix lint
3 years ago
sxpsxp12
63b1764a04
fix: fix log.Helper.WithContext msg key missing ( #1571 )
3 years ago
letian
3d23d295c4
feat(log): default message key ( #1545 )
3 years ago
包子
250bb5c8e7
feat(log/helper): log helper add WithMessageKey option ( #1541 )
3 years ago
404_K
aba30889c9
chrone: fix doc error ( #1498 )
3 years ago
Kagaya
f7588a47de
fix: ci lint error ( #1391 )
...
* fix lint check
* fix lll lint error
* fix build error
* fix gomnd
* fix shadow declaration
* add make test command
* update
3 years ago
包子
7b6332ee75
deps: middleware add separate go.mod and removes framework deps ( #1385 )
...
* deps: middleware add separate go.mod and removes framework deps
3 years ago
Xudong Cai
b44e47b087
refactor: optimize the code and use golangci-lint to check for any errors ( #1298 )
...
* feat: optimize the code and use golangci-lint to check for any errors
* fix: TestLogger unit test
3 years ago
拉小轰
5d07a94b16
use "and" replace "sub" ( #1207 )
4 years ago
longxboy
07f9fa3e91
change debug level to -1 ( #1105 )
4 years ago
包子
b4dd478bc9
update log/readme.md ( #1085 )
...
* update log/readme.md
Co-authored-by: chenzhihui <zhihui_chen@foxmail.com>
4 years ago
拉小轰
a928622f27
golang syntax log README.md ( #1084 )
...
* golang syntax log README.md
* golang syntax
4 years ago
包子
53522c4098
add log fatal level ( #1067 )
4 years ago
包子
258e911f4f
fix log filter ( #1056 )
...
* fix log filter
Co-authored-by: Tony Chen <zhihui_chen@foxmail.com>
4 years ago
chenzhihui
dc476c3b57
fix
4 years ago
chenzhihui
b378f993c4
fix
4 years ago
chenzhihui
91a01798f4
fix
4 years ago
chenzhihui
f92d4742bb
fix
4 years ago
包子
ba2607530d
fix log filter
4 years ago
chenzhihui
51725f1912
fix
4 years ago
chenzhihui
0e6c53fda9
fix
4 years ago
chenzhihui
7340fecf27
fix
4 years ago
包子
34d6d7b90e
add log filter benchmark
4 years ago
包子
7bebc58381
modify log caller
4 years ago