|
@@ -57,13 +57,13 @@ func CloseDefaultLogger() error {
|
|
|
// LogInfo log info
|
|
|
func LogInfo(v ...interface{}) {
|
|
|
deflog.Log.SetPrefix("[INFO]")
|
|
|
- deflog.Log.Println(v)
|
|
|
+ deflog.Log.Println(v...)
|
|
|
}
|
|
|
|
|
|
// LogDebug log debug
|
|
|
func LogDebug(v ...interface{}) {
|
|
|
deflog.Log.SetPrefix("[DEBUG]")
|
|
|
- deflog.Log.Println(v)
|
|
|
+ deflog.Log.Println(v...)
|
|
|
}
|
|
|
|
|
|
// NewLogger new
|
|
@@ -87,11 +87,11 @@ func (logger Logger) Close() error {
|
|
|
// Info log info
|
|
|
func (logger Logger) Info(v ...interface{}) {
|
|
|
logger.Log.SetPrefix("[INFO]")
|
|
|
- logger.Log.Println(v)
|
|
|
+ logger.Log.Println(v...)
|
|
|
}
|
|
|
|
|
|
// Debug log debug
|
|
|
func (logger Logger) Debug(v ...interface{}) {
|
|
|
logger.Log.SetPrefix("[DEBUG]")
|
|
|
- logger.Log.Println(v)
|
|
|
+ logger.Log.Println(v...)
|
|
|
}
|