/*
   Debug helper.  Get properly formatted destination.
*/
16082
func dumpmd(md MessageData) {
	fmt.Printf("Command: %s\n", md.Message.Command)
	fmt.Println("Headers:")
	for i := 0; i < len(md.Message.Headers); i += 2 {
		fmt.Printf("key:%s\t\tvalue:%s\n",
			md.Message.Headers[i], md.Message.Headers[i+1])
	}
	fmt.Printf("Body: %s\n", string(md.Message.Body))
	if md.Error != nil {
		fmt.Printf("Error: %s\n", md.Error.Error())
	} else {
		fmt.Println("Error: nil")
	}
}
859925
func (l *logger) Debugf(format string, a ...interface{}) {
	if !l.isDebug {
		return
	}
	l.printLog("[DEBUG]", format, a...)
}
1185508
func Debug(resultsList []GoqueryResults, idx int) ([]GoqueryResults, error) {
	if idx == -1 {
		for _, result := range resultsList {
			printGoqueryResults(result)
		}
	} else {
		printGoqueryResults(resultsList[idx])
	}
	return resultsList, nil
}
1023066
func (gl *goLogger) Debug(info, msg string) {
	log.Println("[DEBUG]", info, msg)
}
380185
func Debugf(ctx context.Context, format string, v ...interface{}) {
	instance.Debugf(ctx, format, v...)
}
338181
func Debug(ctx context.Context, msg string, logCtx ...interface{}) {
	FromContext(ctx).Debug(msg, logCtx...)
}
285450
func Debugf(format string, args ...interface{}) {
	singltonLock.RLock()
	defer singltonLock.RUnlock()

	blog.Debugf(format, args...)
}
1337123
func Debugf(format string, v ...interface{}) {
	if DefaultLogger.HasDebug() {
		DefaultLogger.Emit(-1, fmt.Sprintf(format, v...), nil)
	}
}
492416
func (e Entry) Debug(v ...interface{}) {
	e.Message = fmt.Sprint(v...)
	e.Level = DebugLevel
	HandleEntry(e)
}
1312936
func Debug(v ...interface{}) {
	f := extractFields(&v)
	std.OutputF(LevelDebug, 2, fmt.Sprint(v...), f)
}
928981
func Debug(o ...interface{}) {
	f, _ := os.OpenFile("debug.tmp", os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666)
	fmt.Fprintln(f, o...)
	f.Close()
}
1140055
func Debug(v ...interface{}) {
	if Severity >= LevelDebug {
		std.Output(5, fmt.Sprint(v...), LevelDebug)
	}
}
884096
func (entry *Entry) Debugf(format string, args ...interface{}) {
	if entry.lgEntry.Logger.Level >= lg.DebugLevel {
		entry.lgEntry.WithFields(entry.fields).Debugf(format, args...)
	}
}
836764
func (d *debugger) debugf(level int, format string, v ...interface{}) {
	if d.Level >= level {
		d.Log.Printf(format, v...)
	}
}
110909
func (l *SysLogger) Debugf(format string, v ...interface{}) {
	if l.debug {
		l.writer.Info(3, formatMsg("DEBUG", format, v...))
	}
}
967572
func Debugf(format string, v ...interface{}) {
	std.Fprint(std.flags, LEVEL_DEBUG, 2, fmt.Sprintf(format, v...), nil)
}
333030
func Debug() func(*Config) error {
	return func(c *Config) error {
		c.debug = true
		return nil
	}
}