Skip to content

Update Logger Middleware Docs to Include Correct CustomTags Example for v3 #3445

@sixcolors

Description

@sixcolors

Fiber documentation requires an update for the logger middleware to include the correct usage of CustomTags in version 3. The current documentation did not reflect the updated API for configuring custom tags, leading to confusion.

Changes include:

  • Adding a working example of using CustomTags with logger.Config in the v3 documentation.
  • Providing a clear, corrected format for defining and using custom tags in the logger middleware.

This should help developers correctly implement custom tags in their logging setup and avoid issues with outdated examples.

I follow the v3 docs. Maybe it not yet completed. If you think it not bugs you can close the issue. @sixcolors.

Ah, I see — thanks for pointing that out. We missed updating the logger middleware example at:

// Logging Request ID

I'll raise a separate issue for that and submit a fix to clarify how to use CustomTags in v3. Since this isn't a bug with the logger itself, I'm closing this issue.

Originally posted by @sixcolors in #3436

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions