From 9da883a50c23f8fe99796167c1a473f27474c88a Mon Sep 17 00:00:00 2001 From: John Date: Thu, 23 May 2019 11:49:33 +0800 Subject: [PATCH] comment updates --- g/os/glog/glog.go | 2 +- g/os/glog/glog_logger.go | 2 +- geg/os/glog/glog_file.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/g/os/glog/glog.go b/g/os/glog/glog.go index a0a46cece..7dd62c664 100644 --- a/g/os/glog/glog.go +++ b/g/os/glog/glog.go @@ -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) } diff --git a/g/os/glog/glog_logger.go b/g/os/glog/glog_logger.go index c7ce97c37..afd0b18d3 100644 --- a/g/os/glog/glog_logger.go +++ b/g/os/glog/glog_logger.go @@ -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 } diff --git a/geg/os/glog/glog_file.go b/geg/os/glog/glog_file.go index 8a409863f..29797dff0 100644 --- a/geg/os/glog/glog_file.go +++ b/geg/os/glog/glog_file.go @@ -11,7 +11,7 @@ func main() { l := glog.New() path := "/tmp/glog" l.SetPath(path) - l.SetStdPrint(false) + l.SetStdoutPrint(false) // 使用默认文件名称格式 l.Println("标准文件名称格式,使用当前时间时期") // 通过SetFile设置文件名称格式