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

rotate log by default #678

Merged
merged 4 commits into from
Jul 14, 2017
Merged

Conversation

zhangjinpeng87
Copy link
Member

@disksing
Copy link
Contributor

Any need to update conf/config.toml?

server/config.go Outdated
@@ -115,6 +115,7 @@ func NewConfig() *Config {

fs.StringVar(&cfg.Log.Level, "L", "", "log level: debug, info, warn, error, fatal (default 'info')")
fs.StringVar(&cfg.Log.File.Filename, "log-file", "", "log file path")
fs.BoolVar(&cfg.Log.File.LogRotate, "rotate-log", true, "rotate log")
Copy link
Contributor

@nolouch nolouch Jul 12, 2017

Choose a reason for hiding this comment

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

s/ rotate-log / log-rotate, to same with the toml flag.

Copy link
Contributor

Choose a reason for hiding this comment

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

seem, we will rotate the log by day automatically.

Copy link
Contributor

@disksing disksing left a comment

Choose a reason for hiding this comment

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

LGTM.

@siddontang
Copy link
Contributor

LGTM

@siddontang siddontang merged commit c76b8c5 into master Jul 14, 2017
@siddontang siddontang deleted the zhangjinpeng/rotate-log-by-default branch July 14, 2017 09: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.

None yet

4 participants