Skip to content

I like your idea #7

@lunemec

Description

@lunemec

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions