bombsimon/logrusr

📝 A logr implementation using Logrus

34

stars

91

commits

Go

primary language

Aug 29, 2026

updated

README

Logrusr

Go Reference GitHub Actions Coverage Status Go Report Card

A logr implementation using logrus.

Usage

import (
    "github.com/bombsimon/logrusr/v4"
    "github.com/go-logr/logr"
    "github.com/sirupsen/logrus"
)

func main() {
    logrusLog := logrus.New()
    log := logrusr.New(logrusLog)

    log = log.WithName("MyName").WithValues("user", "you")
    log.Info("Logr in action!", "the answer", 42)
}

For more details, see example.

Implementation details

The New method takes a logrus.FieldLogger interface as input which means this works with both logrus.Logger and logrus.Entry. This is currently a quite naive implementation in early state. Use with caution.

Contributors

bombsimon

52 commits

dependabot[bot]

33 commits

avorima

2 commits

alexmt

1 commits

bombsimon/logrusr

📝 A logr implementation using Logrus

34

stars

91

commits

Go

primary language

Aug 29, 2026

updated

README

Logrusr

Go Reference GitHub Actions Coverage Status Go Report Card

A logr implementation using logrus.

Usage

import (
    "github.com/bombsimon/logrusr/v4"
    "github.com/go-logr/logr"
    "github.com/sirupsen/logrus"
)

func main() {
    logrusLog := logrus.New()
    log := logrusr.New(logrusLog)

    log = log.WithName("MyName").WithValues("user", "you")
    log.Info("Logr in action!", "the answer", 42)
}

For more details, see example.

Implementation details

The New method takes a logrus.FieldLogger interface as input which means this works with both logrus.Logger and logrus.Entry. This is currently a quite naive implementation in early state. Use with caution.

Contributors

bombsimon

52 commits

dependabot[bot]

33 commits

avorima

2 commits

alexmt

1 commits

Languages

Go

100.0%