// String returns the name of a Level or the numerical value if the Level is unknown.
438671
func (l Level) String() string {
	name, ok := levelToName[l]
	if !ok {
		return strconv.Itoa(int(l))
	}
	return name
}
993478
func (c *Call) String() string {
	var buf bytes.Buffer

	// Write name.
	if c.Name != "" {
		buf.WriteString(c.Name)
	} else {
		buf.WriteString("!UNNAMED")
	}

	// Write opening.
	buf.WriteByte('(')

	// Write child list.
	for i, child := range c.Children {
		if i > 0 {
			buf.WriteString(", ")
		}
		buf.WriteString(child.String())
	}

	// Separate children and args, if necessary.
	if len(c.Children) > 0 && len(c.Args) > 0 {
		buf.WriteString(", ")
	}

	// Write arguments in key order.
	for i, key := range c.keys() {
		if i > 0 {
			buf.WriteString(", ")
		}
		// If the Arg value is a Condition, then don't include
		// the equal sign in the string representation.
		switch v := c.Args[key].(type) {
		case *Condition:
			fmt.Fprintf(&buf, "%v %s", key, v.String())
		default:
			fmt.Fprintf(&buf, "%v=%s", key, formatValue(v))
		}
	}

	// Write closing.
	buf.WriteByte(')')

	return buf.String()
}
1059442
func (e Increment) String() string {
	return fmt.Sprintf("{Type: %s, Key: %s, Value: %d}", e.TypeString(), e.Name, e.Value)
}
572581
func (level Level) String() string {
	switch level {
	case FATAL:
		return "FATAL"
	case ERROR:
		return "ERROR"
	case WARN:
		return "WARN"
	case INFO:
		return "INFO"
	case DEBUG:
		return "DEBUG"
	case TRACE:
		return "TRACE"
	}
	return "INVALID"
}
141335
func (l Level) String() string {
	var t string
	switch l {
	case LevelDebug:
		t = levelDebug
	case LevelInfo:
		t = levelInfo
	case LevelWarn:
		t = levelWarn
	case LevelError:
		t = levelError
	case LevelFatal:
		t = levelFatal
	default:
		t = strconv.FormatInt(int64(l), 10)
	}
	return t
}
1127199
func (l Level) String() string {
	switch l {
	case DEBUG:
		return "DEBUG"
	case INFO:
		return "INFO"
	case WARN:
		return "WARN"
	case ERROR:
		return "ERROR"
	case FATAL:
		return "FATAL"
	case OFF:
		return "OFF"
	default:
		return "INVALID LEVEL"
	}
}
670083
func (e *Epoch) String() string {
	return fmt.Sprintf("Epoch{Time:%d, Level:%d}", e.Time, e.Level)
}
1279229
func (t ThresholdState) String() string {
	if s := thresholdStateStrings[t]; s != "" {
		return s
	}
	return fmt.Sprintf("Unknown ThresholdState (%d)", int(t))
}
1288859
func (n Namespace) String() string {
	ns := n.Strings()
	s := n.getSeparator()
	return s + strings.Join(ns, s)
}
434968
func (u *User) String() string {
	if u.UserName != "" {
		return u.UserName
	}

	name := u.FirstName
	if u.LastName != "" {
		name += " " + u.LastName
	}

	return name
}
896986
func String(s []byte) string {
	if a := Lookup(s); a != 0 {
		return a.String()
	}
	return string(s)
}
1313783
func (e *Env) String() string {
	e.RLock()
	defer e.RUnlock()

	return e.name
}
526820
func String() string {
	ver := "dev"
	if strings.Compare(Version, "") != 0 {
		ver = fmt.Sprintf("%s", Version)
	}
	if strings.Compare(BuildMetadata, "") != 0 {
		ver = fmt.Sprintf("%s+%s", ver, BuildMetadata)
	}
	return ver
}
1127649
func (l LogLevel) String() string {
	switch l.Match() {
	case Critical:
		return "CRIT"
	case Error:
		return "ERR"
	case Warning:
		return "WARN"
	case Notice:
		return "NOTE"
	case Info:
		return "INFO"
	case Debug:
		return "DEBUG"
	case Trace:
		return "TRACE"
	default:
		return "UNSET"
	}
}
145401
func (c ExitCode) String() string {
	if str, ok := exitcodeMap[c]; ok {
		return str
	}
	return "unknown"
}
223523
func (c *Counters) String() string {
	c.mu.Lock()
	defer c.mu.Unlock()
	return counterToString(c.counts)
}
1322192
func (e Event) String() string {
	if val, found := tostr[e]; found {
		return val
	}

	return "UNKNOWN"
}