-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
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...
tonglil
Metadata
Metadata
Assignees
Labels
No labels