Standard library / log
log.Logger.Flags()
Read the active formatting bitmask. Expected stdout: '1\n'.
Formal Syntax & Structure
go syntaxgo
func (l *Logger) Flags() intReturn Value
int
Read the active formatting bitmask.
Working Example
Example Snippetgo
package main
import ( "bytes" "fmt" "log")
func main() { var b bytes.Buffer l := log.New(&b, "", 0) l.SetFlags(log.Ldate) fmt.Println(l.Flags())}