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

intermediate Published 7 Jul 2024
Action Steps
  1. Add the MongoDB driver dependency to your Quarkus project
  2. Configure the MongoDB connection in application.properties
  3. Enable query logging by setting the logging.level.root property
  4. Use the @Log annotation to log queries in your repository classes
  5. 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...
Read full article → ← Back to Reads

Related Videos

AWS, Azure, GCP: The One Thing Every Business Gets Wrong
AWS, Azure, GCP: The One Thing Every Business Gets Wrong
AI Daily
Containers on Amazon ECS with Mama J
Containers on Amazon ECS with Mama J
AWS Developers
How to Open QTR Files (QuickTime Movie)
How to Open QTR Files (QuickTime Movie)
File Extension Geeks
Improving DevOps Security and Efficiency at Cathay with AWS ProServe | Amazon Web Services
Improving DevOps Security and Efficiency at Cathay with AWS ProServe | Amazon Web Services
Amazon Web Services
Kubernetes Observability 101: Metrics, Logs, Dashboards, and Traces
Kubernetes Observability 101: Metrics, Logs, Dashboards, and Traces
Kubesimplify
Do Azure and AWS Have Too Much Power? The EU’s Answer: Maybe So. #cloud #aws #azure
Do Azure and AWS Have Too Much Power? The EU’s Answer: Maybe So. #cloud #aws #azure
Digital Transformation with Eric Kimberling