We are using Spring Data MongoDB to operate mongodb. I was using Spring Data JPA to manage some relationship database. The SQL can be printed into the log file (log4j or logback). But for the mongoDB operation, there is no log output. Is there any way can let our debug what document (json object) has been insert or updete into the MongoDB base on Spring Data MongoDB module?
How to log the operations of Spring Data MongoDB?
1.8k Views Asked by crisli At
1
There are 1 best solutions below
Related Questions in MONGODB
- MongoDb not connecting C#
- How do I link two models in mongoose?
- MERN Stack App - User Avatar Upload - 500 Error After Deployment on Render
- On the server side, it returns undefined but on the client side, logs the values no problem
- Laravel: Using belongsToMany relationship with MongoDB
- What are some MERN projects that will grow me from junior dev to senior
- Save Interface in DB golang
- findOneAndUpdate not updating value in mongodb?
- Get Type Error when using .countDocuments with mongoDB
- Getting a Large Error Output When Calling MongoDB/Mongoose Functions Without an Error Message
- How to enter data in mongodb array at specific position such that if there is only 2 data in array and I want to insert at 5, then rest data is null
- using Python to insert_one to my mongo_db, How do I pass key values into a function?
- SSL Certificate Verification Error When Scraping Website and Inserting Data into MongoDB
- connect ECONNREFUSED 43.205.72.30:27017 while connecting to Atlas
- Vite is probably changing my import path. What should I do?
Related Questions in LOG4J
- Purpose of setting debug="false" in log4j at configuration level
- log4j-api 2.20.0 causing : java.lang.NoClassDefFoundError: Could not initialize class org.apache.logging.log4j.util.PropertiesUtil
- log4j2 CronTriggeringPolicy results incorrect date in filename along with SizeBasedTriggeringPolicy
- Log4j is not writing logs into file
- How to print hudi logs in aws emr serverless application
- Is there a way to color-code Log4J2 in Windows Powershell?
- Not able to change the logging level log4j on Payara server
- How to implement log4j in IBM BPM?
- How can I change logger pattern?
- Log4J 2 - Each run has its own unique folder to store logs, and automatically delete old logs/folders
- Disable default logging in /opt/engine.log
- Native Compile java.lang.NoSuchMethodException: org.apache.logging.log4j.message.DefaultFlowMessageFactory.<init>() exception for apache-poi
- log4j 1.2.x outputs JSON format
- log4j java - dynamic logger creation in multi-thread environment
- Log4j is not accessible in eclipse
Related Questions in SPRING-DATA
- @TestNg [TestNG] No tests found. Nothing was run Usage: <main class> [options] The XML suite files to run
- Returing List vs Set of Entity in Spring Data JPA
- How to call a stored procedure from Spring Data JPA and map the result to a custom object without having a corresponding entity?
- DynamoDBIndexHashKey annotation on entity field make queries fail
- ConcurrentModificationException happen for findAllById in arangodb-spring-data with concurrent workers
- How do I stop Hibernate from deleting entities from DB which are not in list which I working with?
- How to query jsonb column with spring data
- Schema per tenant in eclipselink using spring boot
- How Are Two Repositories Treated As The Same?
- JdbcTemplate binding to multiple datasources
- Cannot save multiple orders on one customer
- Spring Boot 3 Data Jpa Methods Not working
- How to return an immutable DTO when using Spring Data with MongoDB?
- Partial data insertion in PostgreSQL Database using spring boot service
- Javax.persistence.TransactionRequiredException: Executing an update/delete query - Something wrong with JpaTransactionManager bean?
Related Questions in LOGBACK
- Purpose of setting debug="false" in log4j at configuration level
- Masking in logback.xml with all request and responses
- Logback recording SpringBoot class member variable
- Failed to initialize or to run Configurator: ch.qos.logback.classic.util.DefaultJoranConfigurator
- how to strip a variable using logback after a delimiter
- Logging issues on an apache camel spring boot aplication
- Generate new log file using logback when file size goes beyond a limit
- How do I convert the logback.xml configuration file to an application.yml configuration file?
- Logback: availability of MDCs in forks created inside a StructuredTaskScope
- Send logs to DataDog using Logback yierds "Log destination intake.logs.datadoghq.com/<unresolved>:10514: connection failed. "
- Logback midday logs rotation
- Could not find valid configuration instructions -Logback
- Adding a version number marker to logback log with minimal code changes
- Quarkus - logging to multiple logstashes
- Logback: one file for two appenders
Related Questions in SPRING-MONGO
- How to use groupby min and rertain all field in Spring Mongo aggregation
- Spring Data: MongoDB criteria using $toDouble
- Mongo Db - update element by id inside nested arrays - java spring mongo data
- Is it safe to use Spring Boot 1.5.4.RELEASE and Mongo Java Driver 3.12.12?
- MongoSocketWriteException: Exception sending message
- I want to fetch third children data with query I try many ways but it is not working
- How to convert custom Mongo DB update query to Java code
- How to use to use pipeline within a $lookup in mongo aggregation in java?
- Mongo retrieve all values of a specific field including duplicates as list
- Join two collection in mongodb
- Not able to establish connection between mongodb and Springboot through app.properties file
- How to add allowDiskUse: true in spring mongo view creation
- Getting following error "Failed to convert from type [java.lang.String] to type [byte] for value" while fetching record from mongoDB
- AES Decryption doesnt decrypt email but decrypts normal text
- MongoDB - Updating the collection periodically during application start-up
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Spring data mongodb contains the LoggingEventListener.
Unluckily, the EventListeners do not support all batch operations. If you have batch operations, you may need to add your own costum logging.