func()

in galog.go [509:529]


func (bc *backendConfig) Format(level Level) string {
	if format, found := bc.formatMap[level]; found {
		return format
	}

	for i := level.level; i >= 0; i-- {
		curr := allLevels[i]
		if format, found := bc.formatMap[curr]; found {
			return format
		}
	}

	for i := level.level; i < len(allLevels); i++ {
		curr := allLevels[i]
		if format, found := bc.formatMap[curr]; found {
			return format
		}
	}

	return fallbackFormat
}