Update module github.com/sirupsen/logrus to v1.10.0 #29
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.3→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
v1.9.4Compare Source
Notable changes
ioutilpackage #1472Full Changelog: https://github.com/sirupsen/logrus/compare/v1.9.3...v1.9.4
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, 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.
5d0c07007atof7ebeef528f7ebeef528to7d4f8ff1b47d4f8ff1b4tocf9381145ccf9381145cto9b597fb4ab9b597fb4abtof1f0fe546df1f0fe546dto63d248f09f63d248f09fto18dc13cec818dc13cec8tof2a96506a3f2a96506a3to27554b6f3527554b6f35to4d566727414d56672741to6df6af52306df6af5230tobe422aa680be422aa680to6e6c1c0aea6e6c1c0aeatof53eecf4e4f53eecf4e4to85b3f0601985b3f06019toe6e800bf6ce6e800bf6ctoca3a813549ca3a813549to53b693504753b6935047to75e082ff4175e082ff41tob3637ff602b3637ff602to31d9dc9aa031d9dc9aa0tod0e7bd4cccd0e7bd4cccto0567af57230567af5723to5094db2b365094db2b36toe1e5c481e7e1e5c481e7to3e2cc2479b3e2cc2479btoab51856574ab51856574f7e8155c8cf7e8155c8c81ae7cdf6881ae7cdf68079c0310d6Update module github.com/sirupsen/logrus to v1.9.4to Update module github.com/sirupsen/logrus to v1.10.0ℹ️ Artifact update notice
File name: go.mod
In order to perform the update(s) described in the table above, Renovate ran the
go getcommand, which resulted in the following additional change(s):godirective was updated for compatibility reasonsDetails:
go1.22->1.23View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.