Navigation
This version will reach end of life on Feb 2018. To upgrade, go to the Learn more about upgrading your version of MongoDB.

db.getProfilingLevel()

db.getProfilingLevel()

This method provides a wrapper around the database command “profile” and returns the current profiling level.

Deprecated since version 1.8.4: Use db.getProfilingStatus() for related functionality.