Tips
- By default,
log4js
level fordefault
category is set toOFF
, thus not outputting any logs. To turn on logging,level
must be set other thanOFF
. - Levels: TRACE -> DEBUG -> INFO -> WARN -> ERROR -> FATAL
log4js
level for default
category is set to OFF
, thus not outputting any logs. To turn on logging, level
must be set other than OFF
.BSON Example:
1 | { |
<install_folder>/bin
, run mongod
.NonExistentPath: Data directory: D:\\data\\db\\ not found
. Need to override this pre-configuration first.mongod
can run with command line parameters or read from a config file. Let’s just use command line first. mongod --dbpath D:/mongodata/data --logpath D:/mongodata/log/mongod.log --port 27017
. 27017 is default port.Name | Description | Size | Life |
---|---|---|---|
Cookie | Small piece of text data filed by server and saved in browser and carried in every request. Mostly used for identifying user. | 4KB | User defined expiration. Default cleared on browser close. |
localStorage | Permanent storage for each domain. Not used in request. | 5MB | Permanent, unless cleared. |
sessionStorage | Transient storage for each domain. Not used in request. | 5MB | Available in current session. Cleared when tab or browser closed/refreshed. |
this
in Javascript refers to the context of the statement in which it is being executed.