LogDebugf logs the debug information with specified format.
(format string, v ...interface{})
| 691 | |
| 692 | // LogDebugf logs the debug information with specified format. |
| 693 | func LogDebugf(format string, v ...interface{}) { |
| 694 | if gLog == nil { |
| 695 | return |
| 696 | } |
| 697 | if DebugLevel&gLog.level != gLog.level { |
| 698 | return |
| 699 | } |
| 700 | s := fmt.Sprintf(format, v...) |
| 701 | s = gLog.SetPrefix(s, levelPrefixes[0]) |
| 702 | gLog.debugLogger.Output(2, s) |
| 703 | } |
| 704 | |
| 705 | func EnableDebug() bool { |
| 706 | if gLog == nil { |