Skip to content

feat: add structured logging middleware#15

Open
lupppig wants to merge 1 commit into
logchimp:mainfrom
lupppig:feat/structured-logging
Open

feat: add structured logging middleware#15
lupppig wants to merge 1 commit into
logchimp:mainfrom
lupppig:feat/structured-logging

Conversation

@lupppig

@lupppig lupppig commented Jan 21, 2026

Copy link
Copy Markdown

This PR adds a new 'WithLogger' middleware and a 'StructuredLogger' interface in the 'option' package.

It's compatible with 'slog.Logger' but flexible enough for other loggers.

Tests were added in 'option/middleware_test.go'.

@github-actions

github-actions Bot commented Jan 21, 2026

Copy link
Copy Markdown

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@lupppig

lupppig commented Jan 23, 2026

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant