|
|
@ -130,7 +130,6 @@ func (log *Logger) Infoln(v ...interface{}) { |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//fmt.Println(len(log.logSys))
|
|
|
|
|
|
|
|
for _, logger := range log.logSys { |
|
|
|
for _, logger := range log.logSys { |
|
|
|
logger.Println(v...) |
|
|
|
logger.Println(v...) |
|
|
|
} |
|
|
|
} |
|
|
@ -145,3 +144,15 @@ func (log *Logger) Infof(format string, v ...interface{}) { |
|
|
|
logger.Printf(format, v...) |
|
|
|
logger.Printf(format, v...) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (log *Logger) Fatal(v ...interface{}) { |
|
|
|
|
|
|
|
if log.logLevel > LogLevelInfo { |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for _, logger := range log.logSys { |
|
|
|
|
|
|
|
logger.Println(v...) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
os.Exit(1) |
|
|
|
|
|
|
|
} |
|
|
|