Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make With fields surrounding with [] #4

Merged
merged 4 commits into from
Mar 5, 2019
Merged

make With fields surrounding with [] #4

merged 4 commits into from
Mar 5, 2019

Conversation

lysu
Copy link
Collaborator

@lysu lysu commented Mar 5, 2019

fixes #3

because uber-go/zap#685 can not be accepted in 1.x and too many private method, so we temp copy whole ioCore to pingcap/log to call our addFileds()

then we can make pingcap/tidb#9548 works


This change is Reviewable

@lysu lysu requested review from nolouch and zz-jason March 5, 2019 05:26
zap_log_test.go Outdated
`[INFO] [zap_log_test.go:127] [欢迎]`,
`[INFO] [zap_log_test.go:128] ["欢迎来到 TiDB"]`,
`[WARN] [zap_log_test.go:129] [Type] [Counter=NaN] [Score=+Inf]`,
`[INFO] [zap_log_test.go:133] ["new connection"],[connID=1] [traceID=dse1121]`,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is there has a comma?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@nolouch nolouch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@zz-jason zz-jason left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lysu lysu merged commit afcd266 into pingcap:master Mar 5, 2019
@lysu lysu deleted the dev-fix-with-fields branch March 5, 2019 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

new sub logger using with can not get right log format
3 participants