Parcourir la source

fix default logger

ls il y a 3 ans
Parent
commit
a1f43f8969
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      xlog/logger.go

+ 2 - 1
xlog/logger.go

@@ -22,7 +22,8 @@ func New(w io.Writer) *Logger {
 
 // DefaultLogger defult logger
 func DefaultLogger(w io.Writer) *Logger {
-	return New(w)
+	defLog = New(w)
+	return defLog
 }
 
 // Writer returns the output destination for the standard logger.