diff --git a/log.go b/log.go index 4bf6ae9..3860cae 100644 --- a/log.go +++ b/log.go @@ -31,8 +31,8 @@ const ErrLogPanic = "~~~~panic~~~~~~" //////////////global log//////////////////begin/////////////////// -func PrintPreety(prefix string, v interface{}) { - mylogger.PrintPreety(prefix, v) +func PrintPretty(prefix string, v interface{}) { + mylogger.PrintPretty(prefix, v) } func DebugfWithDepth(calldepth int, format string, v ...interface{}) { mylogger.DebugfWithDepth(calldepth, format, v...) @@ -81,7 +81,7 @@ func (log *Logger) Print(prefix string, v interface{}) { preety, _ := json.Marshal(v) log.logwrite("DEBUGE", 3, prefix+"%s\n", preety) } -func (log *Logger) PrintPreety(prefix string, v interface{}) { +func (log *Logger) PrintPretty(prefix string, v interface{}) { preety, _ := json.MarshalIndent(v, "==", " ") log.logwrite("DEBUGE", 3, prefix+"%s\n", preety) }