// Utility for error log messages (returns an error for easy function returns) (see Debug() for parameter explanation)
// These functions will execute a closure exactly once, to build the error message for the return
// Wrapper for (*Logger).Error
16147
func DebugLog(logname string, arg0 interface{}, args ...interface{}) error {
	const (
		lvl = DEBUG
	)
	switch first := arg0.(type) {
	case string:
		// Use the string as a format string
		Global.intLogNamef(logname, lvl, first, args...)
	case func() string:
		// Log the closure (no other arguments used)
		Global.intLogNamec(logname, lvl, first)
	default:
		// Build a format string so that it will be similar to Sprint
		Global.intLogNamef(logname, lvl, fmt.Sprint(arg0)+strings.Repeat(" %v", len(args)), args...)
	}
	return nil
}
611110
func Error(message string, fields ...interface{}) uint64 {
	return DefaultLogger().Event(event.Error, message, fields...)
}
1358481
func (logger *Logger) Error(args ...interface{}) {
	logger.log(ERROR, fmt.Sprint(args...))
}
1247290
func (c *ChannelLogger) ErrorLogger(err error) Logger {
	c.Err <- err
	return c
}
52091
func (d *DockerHelper) LogError() {
	if !d.errStats.hasError() {
		fmt.Fprintf(os.Stderr, "[Error] %s %s\n", time.Now(), d.errStats.stats())
	}
	d.errStats = newErrorStats()
}
165545
func (l *intLogger) Error(msg string, args ...interface{}) {
	l.Log(Error, msg, args...)
}
885518
func (a *adapter) Error(msg string, data ...interface{}) {
	a.Logger.Error(msg, data...)
}
52915
func (dl *DefaultLogger) Error(message string, params ...interface{}) {
	dl.logger.Errorf(message, params...)
}
22675
func (l *Logger) Error(v ...interface{}) {
	if l.getLevel() <= Error {
		l.getHandler().Log(l.name, Error, fmt.Sprint(v...), 1)
	}
}
213325
func (e *Error) Error() string {
	var b strings.Builder

	// Print the current operation in our stack, if any.
	if e.Op != "" {
		fmt.Fprintf(&b, "%s: ", e.Op)
	}

	// If wrapping an error, print its Error() message.
	// Otherwise print the error code & message.
	if e.Err != nil {
		b.WriteString(e.Err.Error())
	} else {
		if e.Code != "" {
			fmt.Fprintf(&b, "<%s>", e.Code)
			if e.Msg != "" {
				b.WriteString(" ")
			}
		}
		b.WriteString(e.Msg)
	}
	return b.String()
}
303723
func (logger *Logger) Errorf(m string, args ...interface{}) {
	logger.log(ERROR, m, args...)
}
1001826
func (l *dglog) Error(v ...interface{}) {
	v = append([]interface{}{common.RUN_ERROR_FORMAT, fmt.Sprintf("%c[0,0,%dm ", 0x1B, 31)}, v...)
	v = append(v, fmt.Sprintf("%c[0m", 0x1B))
	s := fmt.Sprint(v...)
	logDataChan <- s
	panic(s)
}
570474
func (l *Logger) Error(v ...interface{}) {
	l.Fprint(l.flags, LEVEL_ERROR, 2, fmt.Sprint(v...), nil)
}
1218799
func Error(logger log.Logger) log.Logger {
	return log.WithPrefix(logger, Key(), ErrorValue())
}
8806
func (l *logger) Error(format string, args ...interface{}) {
	if l.Level >= ERROR {
		l.log(ERROR, format, args...)
	}
}
1013535
func (l *CompositeLogger) Error(v ...interface{}) {
	for _, log := range l.loggers {
		log.Error(v...)
	}
}
299516
func Error(err error) {
	logger.Error(fmt.Sprintf("error: %v", err))
	os.Exit(1)
}