2.0.0 • Published 6 years ago

mongolog-cli v2.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

Mongolog-cli

Command line interface to mongolog.

Install

npm i mongolog-cli -g

Hot to use?

Mongolog-cli supports command line parameters:

ParameterOperation
-h, --helpdisplay help and exit
-v, --versionoutput version information and exit
--urlurl to mongodb server
--dateshow logs by date in yyyy.mm.dd format
--ipshow logs from ip
--serverstart mongo-log server

Example

> mongolog --url localhost:27017/myproject
2015.03.30
127.0.0.1
/cloudcmd/img/txt.png: 6
/cloudcmd/json/modules.json: 6
/cloudcmd/api/v1/config: 6
/api/v1/fs/home/coderaiser/mongolog/lib/mongolog.js?hash: 1

With option --server you could start static server in current working directory with mongolog logging support.

License

MIT