Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use as middleware example #285

Closed
quinn opened this issue Apr 18, 2023 · 2 comments · Fixed by #286
Closed

use as middleware example #285

quinn opened this issue Apr 18, 2023 · 2 comments · Fixed by #286

Comments

@quinn
Copy link
Contributor

quinn commented Apr 18, 2023

I assume this is the correct usage of this lib:

const logger = require('pino-http')()

app.use(logger)

Can this be added to the docs or example?

@mcollina
Copy link
Member

Thanks for reporting! Would you like to send a Pull Request to address this issue?

@quinn
Copy link
Contributor Author

quinn commented Apr 19, 2023

yes np

quinn added a commit to quinn/pino-http that referenced this issue Apr 19, 2023
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 a pull request may close this issue.

2 participants