Skip to content

logkit using logrus strange behaviour #929

@SofiaTa

Description

@SofiaTa

Hi,

  1. We want to use the go-kit log logrus adapter library and we found something a bit strange,
    every time you want to use the log API you must provide the key message "msg" for the main message otherwise it will be printed as empty

  2. why the log every-time printed as info even though filtering correctly according

level.Debug(logger).Log("message", "in debug mode", "key2", "foo")

This prints:
{"key2":"foo", "fields.level":{},"level":"info","message":"in debug mode","msg":""}

Thanks,

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions