MongoDB::setProfilingLevel Sets this database's profiling level &reftitle.description; public intMongoDB::setProfilingLevel intlevel &reftitle.parameters; level Profiling level. &reftitle.returnvalues; Returns the previous profiling level.