mirror of
https://github.com/golang/go
synced 2024-11-23 04:50:06 -07:00
log: mention names of flag constants in {Set,}Flags doc comments
Change-Id: I1217f07530dc7586fd7b933bc6a65bad163782db Reviewed-on: https://go-review.googlesource.com/c/go/+/47232 Reviewed-by: Andrew Bonventre <andybons@golang.org> Run-TryBot: Andrew Bonventre <andybons@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
ee3dded36d
commit
5477623031
@ -236,6 +236,7 @@ func (l *Logger) Panicln(v ...interface{}) {
|
||||
}
|
||||
|
||||
// Flags returns the output flags for the logger.
|
||||
// The flag bits are Ldate, Ltime, and so on.
|
||||
func (l *Logger) Flags() int {
|
||||
l.mu.Lock()
|
||||
defer l.mu.Unlock()
|
||||
@ -243,6 +244,7 @@ func (l *Logger) Flags() int {
|
||||
}
|
||||
|
||||
// SetFlags sets the output flags for the logger.
|
||||
// The flag bits are Ldate, Ltime, and so on.
|
||||
func (l *Logger) SetFlags(flag int) {
|
||||
l.mu.Lock()
|
||||
defer l.mu.Unlock()
|
||||
@ -278,11 +280,13 @@ func SetOutput(w io.Writer) {
|
||||
}
|
||||
|
||||
// Flags returns the output flags for the standard logger.
|
||||
// The flag bits are Ldate, Ltime, and so on.
|
||||
func Flags() int {
|
||||
return std.Flags()
|
||||
}
|
||||
|
||||
// SetFlags sets the output flags for the standard logger.
|
||||
// The flag bits are Ldate, Ltime, and so on.
|
||||
func SetFlags(flag int) {
|
||||
std.SetFlags(flag)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user