mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
log: show caller's info in verbose mode
This commit is contained in:
1 parent
ef8cdfa703
commit
486c455236
6 files changed
+23
-4
No files matched your search
+7
-1
@@ -1,6 +1,12 @@
|
||||
package log
|
||||
|
||||
import stdlog "log"
|
||||
import (
|
||||
stdlog "log"
|
||||
)
|
||||
|
||||
func init() {
|
||||
stdlog.SetFlags(stdlog.LstdFlags | stdlog.Lshortfile)
|
||||
}
|
||||
|
||||
// Func defines a simple log function
|
||||
type Func func(f string, v ...interface{})
|
||||
|
||||
Reference in new issue
Block a user