Commit 54776230 authored by Alan Donovan's avatar Alan Donovan Committed by Andrew Bonventre

log: mention names of flag constants in {Set,}Flags doc comments

Change-Id: I1217f07530dc7586fd7b933bc6a65bad163782db
Reviewed-on: https://go-review.googlesource.com/c/go/+/47232Reviewed-by: default avatarAndrew Bonventre <andybons@golang.org>
Run-TryBot: Andrew Bonventre <andybons@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent ee3dded3
...@@ -236,6 +236,7 @@ func (l *Logger) Panicln(v ...interface{}) { ...@@ -236,6 +236,7 @@ func (l *Logger) Panicln(v ...interface{}) {
} }
// Flags returns the output flags for the logger. // Flags returns the output flags for the logger.
// The flag bits are Ldate, Ltime, and so on.
func (l *Logger) Flags() int { func (l *Logger) Flags() int {
l.mu.Lock() l.mu.Lock()
defer l.mu.Unlock() defer l.mu.Unlock()
...@@ -243,6 +244,7 @@ func (l *Logger) Flags() int { ...@@ -243,6 +244,7 @@ func (l *Logger) Flags() int {
} }
// SetFlags sets the output flags for the logger. // SetFlags sets the output flags for the logger.
// The flag bits are Ldate, Ltime, and so on.
func (l *Logger) SetFlags(flag int) { func (l *Logger) SetFlags(flag int) {
l.mu.Lock() l.mu.Lock()
defer l.mu.Unlock() defer l.mu.Unlock()
...@@ -278,11 +280,13 @@ func SetOutput(w io.Writer) { ...@@ -278,11 +280,13 @@ func SetOutput(w io.Writer) {
} }
// Flags returns the output flags for the standard logger. // Flags returns the output flags for the standard logger.
// The flag bits are Ldate, Ltime, and so on.
func Flags() int { func Flags() int {
return std.Flags() return std.Flags()
} }
// SetFlags sets the output flags for the standard logger. // SetFlags sets the output flags for the standard logger.
// The flag bits are Ldate, Ltime, and so on.
func SetFlags(flag int) { func SetFlags(flag int) {
std.SetFlags(flag) std.SetFlags(flag)
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment