db.getProfilingLevel()
This version of the documentation is archived and no longer
supported. View the current documentation to learn how to
upgrade your version of MongoDB.
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.