This reference documentation site is for versions of the MongoDB Java synchronous driver up to 4.3-beta.
See the MongoDB Java Driver documentation site for version 4.3 and later versions of the reference documentation.
See the MongoDB Java Driver documentation site for version 4.3 and later versions of the reference documentation.
- Java Driver
- Reference
- Logging
Logging
By default, logging is enabled via the popular SLF4J API. Logging is optional:
the driver will use SLF4J if the driver detects the presence of SLF4J API (class org.slf4j.Logger
) in the classpath.
Otherwise, the driver will log a single warning via JUL (java.util.logging
) and otherwise logging will be disabled.
The driver uses the following logger names:
org.mongodb.driver
: the root loggercluster
: for logs related to monitoring of the MongoDB servers to which the driver connectsconnection
: for logs related to connections and connection poolsprotocol
: for logs related to protocol message sent to and received from a MongoDB serverinsert
: for logs related to insert messages and responsesupdate
: for logs related to update messages and responsesdelete
: for logs related to delete messages and responsesquery
: for logs related to query messages and responsesgetmore
: for logs related to getmore messages and responseskillcursor
: for logs related to killcursor messages and responsescommand
: for logs related to command messages and responses
uri
: for logs related to connection string parsingmanagement
: for logs related to JMX
On this page