Structured, pluggable logging for Go. (by sirupsen)


Basic logrus repo stats
21 days ago

sirupsen/logrus is an open source project licensed under MIT License which is an OSI approved license.

Logrus Alternatives

Similar projects and alternatives to logrus

  • GitHub repo zap

    Blazing fast, structured, leveled logging in Go.

  • GitHub repo cobra

    A Commander for modern Go CLI interactions

  • GitHub repo viper

    Go configuration with fangs

  • GitHub repo Testify

    A toolkit with common assertions and mocks that plays nicely with the standard library

  • GitHub repo afero

    A FileSystem Abstraction System for Go

  • GitHub repo cookiecutter-golang

    A Go project template

  • GitHub repo cookiecutter-golang

    A Go project template (by spotify)

  • GitHub repo gotoproduction

    quick little snippets/references i use for shipping applications

NOTE: The number of mentions on this list indicates mentions on common posts. Hence, a higher number means a better logrus alternative or higher similarity.


Posts where logrus has been mentioned. We have used some of these posts to build our list of alternatives and similar projects - the last one was on 2021-05-04.
  • My opinionated way to write and test a go http server
    dev.to | 2021-05-04
  • Backstage Software Templates
    dev.to | 2021-04-13
    apiVersion: backstage.io/v1alpha1 kind: Template metadata: name: golang-starter title: Golang Microservice description: Create a Golang repo with this template built by members of the Go community tags: - experimental - go spec: owner: [email protected] templater: cookiecutter type: service path: "." schema: required: - component_id - project_short_description - docker_image - docker_build_image - docker_build_image_version - use_logrus_logging - use_viper_config - use_ci - use_cobra_cmd properties: component_id: title: Name type: string description: Unique name of the component project_short_description: title: Description type: string description: Description of the component docker_image: title: Docker Image type: string description: The docker base image to use when running the service default: alpine-base-image:latest docker_build_image: title: Docker Build Image type: string description: The docker base image to use when building the service default: golang docker_build_image_version: title: Docker Build Image Version description: The image version to use when building the service type: string enum: - alpine default: alpine use_logrus_logging: title: Enable Logrus Logging (https://github.com/sirupsen/logrus) type: string enum: - "y" - "n" default: "y" use_viper_config: title: Enable Viper Config (https://github.com/spf13/viper) type: string enum: - "y" - "n" default: "y" use_cobra_cmd: title: Enable Cobra CLI Tools (https://github.com/spf13/cobra) type: string enum: - "y" - "n" default: "y" use_ci: title: Add CI description: Add a CI config to the repo, Gitub Actions, Circle or Travis are the only supported right now type: string enum: - github - travis - circle - none default: github
  • logrus.errorf() causes panics?
    reddit.com/r/golang | 2021-02-05
    Based on this snippet, it might be worth checking what logrus.PanicLevel is set to, inside your unit test.
  • Mocking the filesystem in Go using Afero
    dev.to | 2020-12-16
    For logging use https://github.com/Sirupsen/logrus