fix typo
This commit is contained in:
parent
52b4d750d1
commit
997627c1b8
6
log.go
6
log.go
@ -31,8 +31,8 @@ const ErrLogPanic = "~~~~panic~~~~~~"
|
|||||||
|
|
||||||
//////////////global log//////////////////begin///////////////////
|
//////////////global log//////////////////begin///////////////////
|
||||||
|
|
||||||
func PrintPreety(prefix string, v interface{}) {
|
func PrintPretty(prefix string, v interface{}) {
|
||||||
mylogger.PrintPreety(prefix, v)
|
mylogger.PrintPretty(prefix, v)
|
||||||
}
|
}
|
||||||
func DebugfWithDepth(calldepth int, format string, v ...interface{}) {
|
func DebugfWithDepth(calldepth int, format string, v ...interface{}) {
|
||||||
mylogger.DebugfWithDepth(calldepth, format, v...)
|
mylogger.DebugfWithDepth(calldepth, format, v...)
|
||||||
@ -81,7 +81,7 @@ func (log *Logger) Print(prefix string, v interface{}) {
|
|||||||
preety, _ := json.Marshal(v)
|
preety, _ := json.Marshal(v)
|
||||||
log.logwrite("DEBUGE", 3, prefix+"%s\n", preety)
|
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, "==", " ")
|
preety, _ := json.MarshalIndent(v, "==", " ")
|
||||||
log.logwrite("DEBUGE", 3, prefix+"%s\n", preety)
|
log.logwrite("DEBUGE", 3, prefix+"%s\n", preety)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user