comment updates

This commit is contained in:
John
2019-05-23 11:49:33 +08:00
parent ea3e03aaba
commit 9da883a50c
3 changed files with 3 additions and 3 deletions

View File

@ -83,7 +83,7 @@ func SetDebug(debug bool) {
logger.SetDebug(debug)
}
// SetStdPrint sets whether ouptput the logging contents to stdout, which is false in default.
// SetStdoutPrint sets whether ouptput the logging contents to stdout, which is false in default.
func SetStdoutPrint(enabled bool) {
logger.SetStdoutPrint(enabled)
}

View File

@ -217,7 +217,7 @@ func (l *Logger) SetFile(pattern string) {
l.file = pattern
}
// SetStdPrint sets whether output the logging contents to stdout, which is true in default.
// SetStdoutPrint sets whether output the logging contents to stdout, which is true in default.
func (l *Logger) SetStdoutPrint(enabled bool) {
l.stdoutPrint = enabled
}

View File

@ -11,7 +11,7 @@ func main() {
l := glog.New()
path := "/tmp/glog"
l.SetPath(path)
l.SetStdPrint(false)
l.SetStdoutPrint(false)
// 使用默认文件名称格式
l.Println("标准文件名称格式,使用当前时间时期")
// 通过SetFile设置文件名称格式