Skip to content

Warn if logged keys and values can't be emitted by go-kit/log's logfmt logger #47

@charleskorn

Description

@charleskorn

go-kit/log's logfmt formatter only supports emitting a particular set of types when emitting keys and values.

If a key's type is not supported, it results in that key-value pair being dropped from the log line altogether. If a value's type is not supported, it is emitted as the string unsupported value type.

It would be great if loggercheck could detect when an unsupported type is passed to go-kit/log.

I might be able to put together a PR for this, if you're open to that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions