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 qiniu log parser more flexiable #715

Merged
merged 1 commit into from
Aug 17, 2018
Merged

Conversation

wonderflow
Copy link
Contributor

Fixes [issue number]

Changes

  • feature1
  • feature2
  • fixbug1
  • fixbug2

Reviewers

  • @[someone] please review
  • @[someotherone] please review

Wiki Changes

  • options1...
  • options2...

Checklist

  • Rebased/mergeable
  • Tests pass
  • Wiki updated

@unknwon
Copy link
Contributor

unknwon commented Aug 17, 2018

我觉得这块代码还是需要树伟来review下靠谱点... 我看不太出具体问题

const (
LogFilePattern = ":\\d+:$"

QiniulogHeadPatthern = `[1-9]\d{3}\/[0-1]\d\/[0-3]\d [0-2]\d:[0-6]\d:[0-6]\d(\.\d{6})? \[`
Copy link
Contributor

Choose a reason for hiding this comment

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

s/QiniulogHeadPatthern/HeadPatthern/

LogFilePattern = ":\\d+:$"

QiniulogHeadPatthern = `[1-9]\d{3}\/[0-1]\d\/[0-3]\d [0-2]\d:[0-6]\d:[0-6]\d(\.\d{6})? \[`
KeyQiniulogPrefix = "qiniulog_prefix" //qiniulog的日志前缀
Copy link
Contributor

Choose a reason for hiding this comment

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

s/KeyQiniulogPrefix/KeyPrefix/

@unknwon
Copy link
Contributor

unknwon commented Aug 17, 2018

LGTM

@wonderflow wonderflow merged commit fab1e92 into qiniu:master Aug 17, 2018
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.

2 participants