-
Notifications
You must be signed in to change notification settings - Fork 4
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
在for循环中输出日志会down掉 #1
Comments
你好,alog.Fatal会主动退出应用,明细请查看源码(manage/manage.go:279) if item.Level == log.FATAL {
os.Exit(1)
} |
你好,请问支持一定数量日志文件后自动删除或覆盖之前的日志文件吗?
[email protected]
发件人: 田念收
发送时间: 2016-11-30 14:00
收件人: antlinker/alog
抄送: ugenehan; Author
主题: Re: [antlinker/alog] 在for循环中输出日志会down掉 (#1)
你好,alog.Fatal会主动退出应用,明细请查看源码(manage/manage.go:279)
if item.Level == log.FATAL {
os.Exit(1)
}
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
目前还不支持,这个是需要优化的地方。现在是对于日志文件按照配置累加的 |
好的,谢谢。
[email protected]
发件人: 田念收
发送时间: 2016-11-30 14:11
收件人: antlinker/alog
抄送: ugenehan; Author
主题: Re: [antlinker/alog] 在for循环中输出日志会down掉 (#1)
目前还不支持,这个是需要优化的地方。现在是对于日志文件按照配置累加的
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
昨天优化了一些文件存储实现,加上了日志清理机制
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
for{
alog.Debug("Debug info...")
alog.DebugC("Debug console info...")
alog.Info("Info info...")
alog.InfoC("Info console info...")
alog.Warn("Warn info...")
alog.WarnC("Warn console info...")
alog.Error("Error info...")
alog.ErrorC("Error console info...")
alog.Fatal("Fatal info...")
alog.FatalC("Fatal console info...")
}
输出到文件中,跑几秒钟自动结束!
The text was updated successfully, but these errors were encountered: