A graphical access logger for Node.
Features
Install
$ npm install accesses --save
Usage
Init accesses
;// Set upconst accesses =appName: 'My Web Service'port: 616;
Register accesses to a framework as a middleware
express
;const app = ;// Register as a middlewareapp;app;app;
If you use the cluster...
You must be call master
function at master process. e.g.:
;;// Masterif clusterisMaster// your master code// Call master function;// Workerselse// your worker code
That is it.
Now, we can monitor accesses on localhost:616
Intercept requests
accesses can intercept to request. So, you can hold, drop and bypass a request and send a custom resoponse.
When turn on intercepting mode, all requests will hold.
Reference
options
Property | Type | Description |
---|---|---|
appName | string | Your app name |
port | number | Port number that you want listen |
store | Store | todo |
Contribution
Issue reports, feature requests and pull requests are welcome!