On this page本页内容
db.getLogComponents()¶Returns the current verbosity settings. The verbosity settings determine the amount of Log Messages that MongoDB produces for each log message component.
If a component inherits the verbosity level of its parent, db.getLogComponents() displays -1 for the component’s verbosity.
The db.getLogComponents() returns a document with the verbosity settings. For example:例如:
To modify these settings, you can configure the systemLog.verbosity and systemLog.component.<name>.verbosity settings in the configuration file or set the logComponentVerbosity parameter using the setParameter command or use the db.setLogLevel() method. For examples, see Configure Log Verbosity Levels.