I like your idea - try to unite or provide common logging interface with adapters for mostly used loggers. But I think the API is a bit verbose..
// log with key-value
logger.WithField("key1", 1).Warnf("warning! %s", "message")
I think logxi nailed the api:
log.Info("message", "key", value, "key2", value2)
// without key-values
log.Info("message")
It just looks much cleaner...
I like your idea - try to unite or provide common logging interface with adapters for mostly used loggers. But I think the API is a bit verbose..
I think logxi nailed the api:
It just looks much cleaner...