How to enable mongodb query logging in reactive java for quarkus with panache
📰 Dev.to · Minhaz
Enable MongoDB query logging in Quarkus with Panache using reactive Java
Action Steps
- Add the MongoDB driver dependency to your Quarkus project
- Configure the MongoDB connection in application.properties
- Enable query logging by setting the logging.level.root property
- Use the @Log annotation to log queries in your repository classes
- Test the logging configuration by running a query and checking the logs
Who Needs to Know This
Developers working with Quarkus, Panache, and MongoDB can benefit from this tutorial to improve logging and debugging capabilities in their applications
Key Insight
💡 Configure logging.level.root and use @Log annotation to enable query logging
Share This
💡 Enable MongoDB query logging in Quarkus with Panache using reactive Java
Key Takeaways
Enable MongoDB query logging in Quarkus with Panache using reactive Java
Full Article
Keeping it here so that anyone after me can find these configs easily. At my job I've been writing a...
DeepCamp AI