Wire listener logging

The wire listener can output trace, debug, informational messages, warnings, and error information to a log.

The default logging mechanism for the wire listener is Logback. Logback is pre-configured and installed along with the JSON components. For more information on how to customize Logback, see http://logback.qos.ch/.

If you start the MongoDB API wire listener from the command line, you can specify the amount of detail, name, and location of your log file by using the -loglevel and -logfile command-line arguments.

Important: If you have customized the Logback configuration or specified another logging framework, the settings for -loglevel and -logfile are ignored.