Browse Source

add log.Lshortfile

presbrey 7 years ago
parent
commit
1f60d21159
1 changed files with 9 additions and 0 deletions
  1. 9 0
      init.go

+ 9 - 0
init.go

@@ -0,0 +1,9 @@
+package gold
+
+import (
+	"log"
+)
+
+func init() {
+	log.SetFlags(log.Flags() | log.Lshortfile)
+}