logrus

Logrus is a fully API compatible, structured and add-on logging library with the standard library log for the Go language. The project is currently in maintenance mode and focuses on security and bug fixes. It offers color output in the development environment, while allowing it to be easily parsed by tools such as logstash or Splunk with the JSON formater.

LO

sirupsen · Log Management

STARS25.8K
FORKS2.3K
COMMITS1.5K
CONTRIBUTORS245
VERSIONv1.10.2
UPDATED28 days ago
GoLoggingStructuredJSON FormatterMIT

Common commercial products in this category: Splunk, Datadog Logs, Sumo Logic

What can it do?
  • With the structure fully compatible with the standard library journal, you can log on to Go projects.
  • Using JSONFormatter, you easily parse logs with logstash or Splunk.
  • By enabling the SetReportCaller setting, you add the called method to the logs as a field.
User reviews
  • • NeutralGitHub Issue

    Log filename and line number

    “Both stdlib package log and many other logging frameworks are supporting this (e.g. Am I missing how to enable it or is it not supported?”

  • • NeutralGitHub Issue

    Case change breaks builds?

    “Not sure what's started to happen, but overnight our builds have started to break: `can't load package: package github.com/TykTechnologies/tyk: case-insensitive import collision: "github.com/Sirupsen/logrus" and "github.com/sirupsen/logrus"` I wonder if it's the case change from…”

GitHub

Verified against README · Oct 26, 2026 · source

My note

Alternative pages

More in: Log Management