Thanks to visit codestin.com
Credit goes to github.com

Skip to content

📒 docs: document logger Stream rename#4057

Merged
gaby merged 3 commits intomainfrom
copilot/update-whats-new-md-logger-change
Feb 6, 2026
Merged

📒 docs: document logger Stream rename#4057
gaby merged 3 commits intomainfrom
copilot/update-whats-new-md-logger-change

Conversation

Copy link
Contributor

Copilot AI commented Feb 6, 2026

Description

The v3 migration docs did not mention the logger configuration rename from Output to Stream, leaving a gap for users upgrading. This update records the rename, rewords the note for consistency with the section tone, and aligns the logger example to the new field.

  • Migration note: Calls out the logger.Config OutputStream rename in the Logger section with updated wording.
  • Example alignment: Updates the logger middleware example to use Stream.
app.Use(logger.New(logger.Config{
    Stream: logger.LoggerToWriter(zap, log.LevelDebug),
}))

Changes introduced

  • Benchmarks: Not applicable.
  • Documentation Update: Updated docs/whats_new.md (Logger section).
  • Changelog/What's New: Added the OutputStream migration note.
  • Migration Guide: Not required beyond the What's New note.
  • API Alignment with Express: Not applicable.
  • API Longevity: Not applicable.
  • Examples: Updated logger example to use Stream.

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)
  • Enhancement (improvement to existing features and functionality)
  • Documentation update (changes to documentation)
  • Performance improvement (non-breaking change which improves efficiency)
  • Code consistency (non-breaking change which improves code reliability and robustness)

Checklist

Before you submit your pull request, please make sure you meet these requirements:

  • Followed the inspiration of the Express.js framework for new functionalities, making them similar in usage.
  • Conducted a self-review of the code and provided comments for complex or critical parts.
  • Updated the documentation in the /docs/ directory for Fiber's documentation.
  • Added or updated unit tests to validate the effectiveness of the changes or new features.
  • Ensured that new and existing unit tests pass locally with the changes.
  • Verified that any new dependencies are essential and have been agreed upon by the maintainers/community.
  • Aimed for optimal performance with minimal allocations in the new code.
  • Provided benchmarks for the new code to analyze and improve upon.

Commit formatting

Please use emojis in commit messages for an easy way to identify the purpose or intention of a commit. Check out the emoji cheatsheet here: CONTRIBUTING.md

Original prompt

This section details on the original issue you should resolve

<issue_title>🧹 [Maintenance]: Add logger.Output -> logger.Stream change to whats_new.md</issue_title>
<issue_description>### Maintenance Task Description

The change from logger.Output to logger.Stream is not documented in the whats_new.md page. We can add a brief segment that mentions this change under the logger section of docs.gofiber.io.

Impact on the Project

By documenting this change to the logger middleware, it makes it easier for users to see what they need to change to migrate to v3.

Additional Context (optional)

This change was made in #3333.

We can also make a separate issue to add a regex that updates this in the fiber cli migration tool

Checklist:

  • I have confirmed that this maintenance task is currently not being addressed.
  • I understand that this task will be evaluated by the maintainers and prioritized accordingly.
  • I am available to provide further information if needed.</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Add logger.Output to logger.Stream change in whats_new.md 📒 docs: document logger Stream rename Feb 6, 2026
Copilot AI requested a review from ReneWerner87 February 6, 2026 10:12
@ReneWerner87 ReneWerner87 added this to v3 Feb 6, 2026
@ReneWerner87 ReneWerner87 added this to the v3 milestone Feb 6, 2026
@gaby gaby marked this pull request as ready for review February 6, 2026 13:00
@gaby gaby requested a review from a team as a code owner February 6, 2026 13:00
@gaby gaby requested review from Copilot, efectn and sixcolors February 6, 2026 13:00
@gaby gaby merged commit ab3c5a3 into main Feb 6, 2026
7 checks passed
@gaby gaby deleted the copilot/update-whats-new-md-logger-change branch February 6, 2026 13:00
@github-project-automation github-project-automation bot moved this to Done in v3 Feb 6, 2026
Copilot AI restored the copilot/update-whats-new-md-logger-change branch February 6, 2026 13:00
Copy link
Contributor Author

Copilot AI commented Feb 6, 2026

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • exampleretry.com
    • Triggering command: /tmp/go-build4170578139/b303/client.test /tmp/go-build4170578139/b303/client.test -test.paniconexit0 -test.v=test2json -test.timeout=10m0s -test.count=1 -test.shuffle=on /lto-wrapper ux-amd64/pkg/tool/linux_amd64/vet /pkg/check/requi/home/REDACTED/go/pkg/mod/golang.org/[email protected]/pkg/too/tmp/go-build4170578139/b183/vet.cfg 9US9uQp7j l/linux_amd64/co-unreachable=false ux-amd64/pkg/too/tmp/go-build4170578139/b093/vet.cfg -o .org/toolchain@v-goversion -trimpath ux-amd64/pkg/tool/linux_amd64/vet BfU_lpClj github.com/gofib-unsafeptr=false l/linux_amd64/co-unreachable=false ux-amd64/pkg/too/tmp/go-build4170578139/b249/vet.cfg (dns block)
    • Triggering command: /tmp/go-build2260231886/b303/client.test /tmp/go-build2260231886/b303/client.test -test.paniconexit0 -test.v=test2json -test.timeout=10m0s -test.count=1 -test.shuffle=on 0578139/b040/vetgolang.org/x/tools/internal/stdlib (dns block)
  • vuln.go.dev
    • Triggering command: /tmp/go-build3955888718/b001/exe/govulncheck /tmp/go-build3955888718/b001/exe/govulncheck ./... GOMODCACHE l/linux_amd64/vet pkg/�� rg/[email protected] -trimpath ux-amd64/pkg/tool/linux_amd64/vet -p github.com/fatih-unsafeptr=false l/linux_amd64/co/tmp/go-build1027974418/b142/vet.cfg ux-amd64/pkg/tool/linux_amd64/vet -p g_.a -trimpath ux-amd64/pkg/tool/linux_amd64/vet -I nternal/decoding/tmp/go-build1027974418/b001/vet.cfg mpile ux-amd64/pkg/tool/linux_amd64/vet (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI requested a review from gaby February 6, 2026 13:00
Copilot stopped work on behalf of gaby due to an error February 6, 2026 13:00
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR documents the breaking change from logger.Output to logger.Stream in Fiber v3, addressing issue #4056. The change helps users understand what they need to update when migrating their logger middleware configuration from v2 to v3.

Changes:

  • Added a clear migration note about the OutputStream rename in the logger configuration
  • Updated the code example to use Stream instead of Output in the logger configuration

@gaby gaby deleted the copilot/update-whats-new-md-logger-change branch February 6, 2026 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

🧹 [Maintenance]: Add logger.Output -> logger.Stream change to whats_new.md

4 participants