Update module github.com/sirupsen/logrus to v1.10.2 - autoclosed #2
Loading…
Add table
Add a link
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 MR contains the following updates:
v1.9.3→v1.10.2Release Notes
sirupsen/logrus (github.com/sirupsen/logrus)
v1.10.2Compare Source
Logrus v1.10.2
This is a small maintenance release that updates
github.com/stretchr/testifyto v1.12.1, removing the legacygopkg.in/yaml.v3dependency from Logrus' dependency graph. There are no functional changes in this release.Dependency Changes
Full Changelog: https://github.com/sirupsen/logrus/compare/v1.10.1...v1.10.2
v1.10.1Compare Source
Logrus v1.10.1
This patch release fixes two issues in field formatting and handling:
TextFormattercould panicwhen formatting nil or panicking
errorandfmt.Stringervalues.errorto be used withWithError,WithField, andWithFields.Dependency Changes
Full Changelog: https://github.com/sirupsen/logrus/compare/v1.10.0...v1.10.1
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: Enabled.
♻ Rebasing: Whenever MR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this MR and you won't be reminded about this update again.
This MR has been generated by Mend Renovate CLI.
mentioned in issue #1
added 2 commits
b49be81b- 1 commit from branchmasterCompare with previous version
changed the description
added 2 commits
bcc60f26- 1 commit from branchmasterCompare with previous version
added 1 commit
Compare with previous version
changed title from
Update module github.com/sirupsen/logrus to v1.10.2toUpdate module github.com/sirupsen/logrus to v1.10.2 - autoclosedPull request closed