nitro
nitro copied to clipboard
fix[azure-functions]: redirect console to azure context for logging
🔗 Linked issue
#383
❓ Type of change
- [ ] 📖 Documentation (updates to the documentation or readme)
- [ ] 🐞 Bug fix (a non-breaking change that fixes an issue)
- [x] 👌 Enhancement (improving an existing functionality like performance)
- [ ] ✨ New feature (a non-breaking change that adds functionality)
- [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to change)
📚 Description
At the moment there is no easy way to run nitro in an azure-funtions context and retain the ability to log out.
This pr redirects the built in console.log(),console.warn(),console.info() and console.error()
to the azure provided logging context.
This adresses #383 ,but should be refined in the future to allow a more flexible log target
📝 Checklist
- [x] I have linked an issue or discussion.
- [ ] I have updated the documentation accordingly.