Skip to content

feat: add structured logging middleware#15

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

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

Conversation

@lupppig
Copy link
Copy Markdown

@lupppig lupppig commented Jan 21, 2026

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
Copy link
Copy Markdown

github-actions Bot commented Jan 21, 2026

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

@lupppig
Copy link
Copy Markdown
Author

lupppig commented Jan 23, 2026

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