Skip to content
CAI
Software that uses CAICheck a score

sirupsen/logrus

72.8

Strong · 13 November 2026

2.8k

lines of production code

Go

primary language

8

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

This system is a Go logging library that provides structured logging capabilities with flexible output routing. It supports bidirectional integration with the standard library's slog ecosystem and enables shipping logs to remote syslog servers or custom I/O destinations. The codebase also includes internal utilities for testing log output and maintains modern Go module dependencies.

Features

Add hook to send logs to custom io.Writer

A new \writer\ hook is available in the \hooks/writer\ package, allowing users to route log entries of specific levels to any object implementing the \io.Writer\ interface. This enables flexible log routing, such as sending warning and error logs to \stderr\ while directing info and debug logs to \stdout\ or other custom destinations.

hooks/writer · high confidence

Add syslog hook for remote log shipping

Users can now send Logrus logs to a syslog server via the new \hooks/syslog\ package. The \SyslogHook\ supports TCP and UDP connections, allows specifying a syslog priority (e.g., LOG\_INFO, LOG\_WARNING), and automatically maps Logrus levels to syslog severity (e.g., Panic/Fatal to Crit, Error to Err, Debug/Trace to Debug). It exposes all log levels by default, but users can override the \Levels()\ method to filter which entries are sent to syslog, enabling different logging thresholds for local vs. remote output.

hooks/syslog · high confidence

Bidirectional adapters between Logrus and slog

Added \hooks/slog\ to bridge the two logging ecosystems: \Handler\ forwards \slog\ records to an existing \logrus.Logger\ (supporting custom level mapping, source reporting, and attribute grouping), while \Hook\ forwards \logrus\ entries to an \slog.Logger\ (preserving caller info and fields). Both adapters include a default level mapping that covers Logrus's Trace through Panic levels, allow custom level mappers via options, and prevent recursive forwarding loops during mixed usage.

hooks/slog · high confidence

Behavioural changes

Logrus v1.10.2 release with dependency and stability updates

This release updates the test dependency \github.com/stretchr/testify\ to v1.12.1, which removes the legacy \gopkg.in/yaml.v3\ dependency. It also includes fixes for a regression in v1.10.0 where \TextFormatter\ could panic on nil or panicking error values, and adds support for function-backed implementations of \error\ as field values.

(repo-wide) · high confidence

Test coverage

Added test package for capturing log entries; New test utility package for structured log assertion.

Dependencies

Initial Go module support with dependency updates

The project now supports Go modules, introducing a go.mod file that sets the Go version to 1.23 and defines direct dependencies on github.com/stretchr/testify v1.12.1 and golang.org/x/sys v0.13.0, along with an indirect dependency on go.yaml.in/yaml/v3 v3.0.5.

(dependencies) · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 70 → 73 (+2.6)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.3) — scores are not directly comparable.

Lenses

  • Code Health 77 → 77 (+0.0)
  • Architecture 100 → 100 (-0.1)
  • Maturity 56 → 59 (+3.3)
  • Readiness 77 → 85 (+8.6)
  • Security 99 → 100 (+0.8)
  • Performance 97 → 95 (-2.1)

Resolved (2)

  • No ADRs found
  • Off-boarding risk: anonymized user #1

New (4)

  • Edited copy of a member (14 corresponding lines) (text_formatter.go)
  • Edited copy of a member (6 corresponding lines) (hooks/slog/handler.go)
  • No ADRs found (doc.go)
  • Off-boarding risk: anonymized user #1

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

sirupsen/logrus was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 13 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 6ef0748d1177dadaeee9aa79ffef604570f487d7 — the exact code this score is about.
  • Scored under rubric-2026.11.3 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.61+preprod-f3449e6eb431.