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
- Meteor MapReduce Package Error: A method named is already defined
- Token based authorization in nodejs/ExpressJs and Angular(Single Page Application)
- Big data with spatial queries/indexing
- How to recover from losing all your /data/db
- What are the benefits of using the fields option when querying in Meteor
- Node JS Async Response
- mongoose get property from nested schema after `group`
- What to use for subdocuments ID's in MongoDB?
- ORM Code First versa Database First in Production
- How to profile a Yii2 based API?
- get length of embedded document in mongoDB with jade
- Architecture: Multiple Mongo databases+connections vs multiple collections with Express
- Why are numbers being inserted into MongoDB incorrectly?
- hibernate ogm mongo db, how to get count of collection?
- C++ Mongodb driver, not working
Related Questions in LOG4J
- Set log4j.properties for GWT
- JENKINS Maven Build Failure
- Is Log4j2 xml configuration case sensitive?
- slf4j mechanism of loading its impl
- How do I redirect a 3rd partly log4j message to my own DailyRollingFileAppender?
- How to initialize the log4j system properly?
- Custom Converter with log4j2 and Mule not working
- log4j config issue with socket appender
- can't enable logging of spring framework
- How can Change log4j configuration file path?
- How to configure Log4j (1 or 2) to use custom log file name while code against Slf4j
- Log4j Logger not logging in some methods
- Performance Impact of logging class name , method name and line number
- Log4j unable to include project build directory in Local classpath in maven War project
- How to set a system property for the log4j2 JUL adapter in an OSGi environment
Related Questions in SPRING-DATA
- LightAdmin - Customise parsing DateTime with app timezone
- ClassNotFound: UpdateableState in spring-data-neo4j-rest 3.3.0
- Spring Data JPA Many to Many save to set
- Inherited properties of related entities are not visible in spring-data-neo4j-rest
- Guice + Jersey + Spring data
- org.hibernate.exception.SQLGrammarException: could not prepare statement; nested exception is javax.persistence.PersistenceException
- Caused by: java.sql.SQLSyntaxErrorException: [SQL0205] Column MITMAS_MMCONO not in table OOLINE in schema
- Spring HATEOAS + JPA links
- Mongo @DBRef unique
- What is the exact meaning of @RestResource(exported=false) in Spring-Data?
- How is the RowMapper Method working from Spring 1.2?
- Spring boot don't let me create a repository without database
- Delete ObjectDetails from Object Spring Data
- How to have a different Elastic Spring Data index per request
- JPA - how to prevent an unnecessary join while querying many to many relationships
Related Questions in LOGBACK
- Logback stopped logging after splitting shared config file
- Logback - Reentrant Lock?
- Log of dependency does not show
- Logback encoder layout for processing output of org.jboss.netty.handler.logging.LoggingHandler
- Logback : using different patterns for different markers
- Logback doesn't print any log in Weblogic 12c
- Filter Hibernate Log messages - To take out Constraint Tree
- Play Framework - Change the log file location
- logstash tcp input configuration using LogstashTcpSocketAppender
- How to implement log changes in a storm project locally using Eclipse
- Send mail in Play2.4 whenever Logger.Error("some error")
- How to set logback configuration file at runtime?
- NoClassDefFoundError sometimes for a standard class after System.out.close()
- Spring Boot - How can I have different log configurations per profile?
- Custom logger using SLF4J which logs messages in specific message formats
Related Questions in SPRING-MONGO
- Auto Increment _Id in Spring MongoRepository
- Not able to update mongo in bulk using updateone with upsert
- Retrieving the documents from the collection of Mongo db based on today's date
- Query a document and all of its subdocuments that match a condition in mongodb (using spring)
- Spring data join mysql entity with collection mongodb
- Spring mongodb get ID of inserted item after Save
- How to write custom query in Mongo Spring Data JPA
- auto-connect-retry="true" attribute in spring mongo 1.10 xml configuration
- Spring Boot & Mongo: custom MappingMongoConverter doesn't work during DotReplacement
- How to write union queries in mongoDB
- Mongo performance
- How to log the operations of Spring Data MongoDB?
- Spring Data Rest /search endpoint with MongoDB Geo Types (Circle, Point)
- How to add allowDiskUse: true in spring mongo view creation
- Not able to establish connection between mongodb and Springboot through app.properties file
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 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.