[TOC] ## log.SetFlags ``` Ldate = 1 << iota Ltime Lmicroseconds Llongfile //显示觉得路径 Lshortfile // 显示文件名 LUTC LstdFlags = Ldate | Ltime // 显示日期加时间 ``` ``` log.SetFlags(log.Lshortfile | log.Ltime) log.Print("hello wrod") //13:45:38 test.go:16: hello wrod ```