https://github.com/coderaiser/node-mongolog-cli
command line interface to mongolog
https://github.com/coderaiser/node-mongolog-cli
Last synced: 11 months ago
JSON representation
command line interface to mongolog
- Host: GitHub
- URL: https://github.com/coderaiser/node-mongolog-cli
- Owner: coderaiser
- License: mit
- Created: 2015-03-30T11:08:41.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2018-04-26T11:48:29.000Z (about 8 years ago)
- Last Synced: 2025-06-21T23:35:47.895Z (11 months ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog
- License: LICENSE
Awesome Lists containing this project
README
Mongolog-cli
=======
Command line interface to [mongolog](https://github.com/coderaiser/node-mongolog "Mongolog").
## Install
`npm i mongolog-cli -g`
## Hot to use?
Mongolog-cli supports command line parameters:
|Parameter |Operation
|:----------------------|:--------------------------------------------
| `-h, --help` | display help and exit
| `-v, --version` | output version information and exit
| `--url` | url to mongodb server
| `--date` | show logs by date in `yyyy.mm.dd` format
| `--ip` | show logs from ip
| `--server` | start mongo-log server
## Example
```sh
> 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