// mustLogDebug logs a debug message only if debug mode
// is enabled. i.e. DEBUG_ENABLED="1"
977924
func (l *BeeLogger) mustLogDebug(message string, file string, line int, args ...interface{}) {
	if !debugMode {
		return
	}

	// Change the output to Stderr
	l.SetOutput(os.Stderr)

	// Create the log record
	record := LogRecord{
		ID:       fmt.Sprintf("%04d", atomic.AddUint64(&sequenceNo, 1)),
		Level:    l.getColorLevel(levelDebug),
		Message:  fmt.Sprintf(message, args...),
		LineNo:   line,
		Filename: filepath.Base(file),
	}
	err := debugLogRecordTemplate.Execute(l.output, record)
	if err != nil {
		panic(err)
	}
}
1308253
func (entry *Entry) Debug(args ...interface{}) {
	if entry.lgEntry.Logger.Level >= lg.DebugLevel {
		entry.lgEntry.WithFields(entry.fields).Debug(args...)
	}
}
377939
func (c *Client) SetDebug(debug bool) {
	c.m.Lock()
	defer c.m.Unlock()

	c.Debug = debug
}
759855
func (c *Consumer) Debug(msg string) {
	if c != nil && c.OnMessage != nil {
		c.OnMessage("debug", msg)
	}
}
179086
func (w *Writer) Debug(m string) (err error) {
	_, err = w.writeAndRetry(LOG_DEBUG, m)
	return err
}
230315
func (l *Logger) Debug(v ...interface{}) {
	l.Fprint(l.flags, LEVEL_DEBUG, 2, fmt.Sprint(v...), nil)
}
646398
func (l *DefaultLogger) Debug(msg string, args ...interface{}) {
	l.Log(LevelDebug, msg, args)
}
969442
func Debug(logger log.Logger) log.Logger {
	return log.WithPrefix(logger, Key(), DebugValue())
}
556896
func (ref *Config) SetDebug(val bool) {
	if val {
		ref.Debug = val
		sarama.Logger = ref.Logger
		ref.SetLevel(logging.DebugLevel)
	} else {
		ref.Debug = val
	}
}
523485
func (tl *testLogger) Debug(info, msg string) {
	tl.mux.Lock()
	defer tl.mux.Unlock()
	entry := fmt.Sprintf("%d [DEBUG] %s %s", time.Now().UnixNano(), info, msg)
	tl.entries = append(tl.entries, entry)
}
368358
func (l *Logger) Debug(msg string, v ...interface{}) {
	if l.debug {
		fmt.Fprint(l.stderr, addColor(DebugPrefix+" ", Cyan))
		l.Msg(msg, v...)
	}
}
931799
func (l *Logger) Debug(format string, args ...interface{}) {
	l.debug(1, format, args...)
}
581414
func (s *logger) Debug(description string, keysAndValues ...interface{}) {
	s.debug(1, description, keysAndValues...)
}
209987
func (s *XPackWatcherExecuteWatchService) Debug(debug bool) *XPackWatcherExecuteWatchService {
	s.debug = &debug
	return s
}
1169899
func Debugf(format string, v ...interface{}) {
	if LogLevel >= 4 {
		DoLog(3, DEBUG, fmt.Sprintf(format, v...))
	}
}
260828
func (l *Logger) Debug(format string, v ...interface{}) {
	l.output(LDebug, format, v...)
}
389269
func (l *Logger) Debuge(err error) {
	if l.getLevel() <= Debug && err != nil {
		l.getHandler().Log(l.name, Debug, err.Error(), 1)
	}
}