Database Reference
In-Depth Information
Furthermore, you can use the mongod or mongos command-line configuration like in
the following command:
mongod --logpath /var/log/mongodb.log
The result of executing the preceding command is similar to the previous example with
the configuration file.
In order to read the logfiles, you can use the tail or cat commands in Unix operating
systems and text editors in Windows. For instance, in order to read the output of the previ-
ous example of logfile, you can issue the following command in a Unix operating system:
tail -f /var/log/mongodb.log
The output of the preceding command is as follows:
Search WWH ::




Custom Search