LogInfo indicates log the information with specific format. TODO explain
(format string, v ...interface{})
| 632 | |
| 633 | // LogInfo indicates log the information with specific format. TODO explain |
| 634 | func LogInfof(format string, v ...interface{}) { |
| 635 | if gLog == nil { |
| 636 | return |
| 637 | } |
| 638 | if InfoLevel&gLog.level != gLog.level { |
| 639 | return |
| 640 | } |
| 641 | s := fmt.Sprintf(format, v...) |
| 642 | s = gLog.SetPrefix(s, levelPrefixes[1]) |
| 643 | gLog.infoLogger.Output(2, s) |
| 644 | } |
| 645 | |
| 646 | func EnableInfo() bool { |
| 647 | if gLog == nil { |