fix(deps): update module github.com/sirupsen/logrus to v1.10.0 #128
Loading…
Reference in a new issue
No description provided.
Delete branch "renovate/github.com-sirupsen-logrus-1.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
v1.9.4→v1.10.0Release Notes
sirupsen/logrus (github.com/sirupsen/logrus)
v1.10.0Compare Source
Logrus v1.10.0
This release focuses on substantial performance improvements, concurrency correctness, and better interoperability with modern Go logging APIs.
🚀 Performance
Major improvements across
TextFormatter, entry handling, and common logger paths:WithErroris ~40% fasterTextFormatterpaths are up to ~40% fasterTextFormattercases, with the largest reductions in colored outputThe improvements also show up in complete logger paths:
TextFormatteris ~31% faster, with ~24% fewer allocationsJSONFormatteris ~21% faster, with ~10% fewer allocationsJSONFormatteritself remains largely unchanged in runtime performance, with small allocation reductions.🔄
log/sloginteroperabilityv1.10 adds bidirectional interoperability between Logrus and Go's
log/slog:sloghook can forward existing Logrus entries to ansloglogger.hooks/slog.NewHandlerimplementsslog.Handler, allowinglog/slogrecords to use an existing Logrus logger and its hooks, formatter, and output.ReportCalleroption.sloglevels can be mapped to Logrus levels.log/slogwithout requiring an all-at-once transition.This allows applications to migrate their logging API and logging backend independently: existing Logrus call sites can start using an
slogbackend, while newslogcode can continue using an established Logrus setup.🔒 Concurrency & Correctness
MarshalJSONor formatter code.Log,Logf,Logln, andLogFnmethods unexpectedly panicking when called withPanicLevel, contrary to their documented behavior.➕ Added
TextFormatternow automatically enables colors on Windows terminals with ANSI support, matching behavior on other platforms.Entry.Callercan now be set explicitly and is preserved across derived entries. When caller reporting is enabled, Logrus only detects and populates caller information when none was provided, allowing custom caller detection and wrapper-aware logging without adding additional caller configuration APIs.⚠️ Behavioral Changes
TextFormatternow renders[]byteas raw/quoted strings instead of numeric slices.If you relied on the previous slice-of-ints output, convert explicitly before logging.
TextFormatternow uses dim cyan for debug output and dim white for trace output in colorized TTY output.Entry.HasCalleris now deprecated in favor of checkingEntry.Callerdirectly. A//go:fix inlinedirective was added so existing uses can be updated automatically.MutexWrap, which was unintentionally exposed as public API, is deprecated. It remains available as an alias for compatibility but should not be used directly.v1.10 is primarily a performance, correctness, and interoperability release with no intentional breaking public API changes.
Benchmarks (sampled at 457e372460c7a80ca7c800b51ebeee5362aaa180)
Full Changelog: https://github.com/sirupsen/logrus/compare/v1.9.4...v1.10.0
Configuration
📅 Schedule: (in timezone Europe/Berlin)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate CLI.