by jzelinskie · 11y ago · 0 comments
DebugWithTags(message string, tags ...string)
This way you could easily add tags without having to explicitly allocate a []string whenever you wanted to change them.With that said, i really do wish Go supported `DebugWithTags(tags ...string, message string)` syntax. I've had so many cases where i wanted to use something similar.
Though, i would agree that the order should be switched. Eg, `DebugWithTags(string, []string, ...interface{})`
func (logger *LoggerImpl) DebugWithTagsf(tags []string, fmt string, args ...interface{}) {
logger.logwithformat(DEBUG, tags, fmt, args...)
}