Fullstack-monitor is log monitoring tools for developers, offering visibility of console logs, requests and responses from both the Client and Server side of your application in one single place.
This makes it easy to see what is happening across the stack as your front and back-end communicate.
In order to use this, you must also install the Fullstack-Monitor-CLI npm package.
npm install fullstack-monitor
- Import fullstack-monitor in front-end, usually
in index.js
.
import FL from 'fullstack-monitor'
- Invoke the
FL.setup
function with the stringclient
argument.
FL.setup('client');
- Please note, any code executed before the
setup
function is invoked will not be monitored.
- Import fullstack- monitor in back-end, usually in
server.js
orindex.js
, with theserver
argument.
const fl = require('fullstack-monitor');
fl.setup('server');
- Pass the
fl.run
intoapp.use
as a middleware function, whereapp
refers toconst app = express();
.
app.use(fl.run);
Run your application with
npm run dev
- Or the equivalent command in your setup.
- Globally install Fullstack-Monitor-CLI
$ npm install -g fullstack-monitor-cli
- Bootup the
Fullstack-Monitor-CLI
server.
$ fullstack-monitor-cli --start
- Go to
localhost:3861
or the port configured to see the user interface of fullstack-monitor. Or just use the--chrome
command:
$ fullstack-monitor-cli --chrome
- In Home Page, all logs types are logs are shown, currently there are four diffrent types of logs.
- Console.log coming from the client side - as Type : Client
- Console.log coming from the server side - as Type : Server
- Request coming from the client side - as Type : Request
- Repond going out from server side - as Type : Server
- For each Type, users can navigate through the Top Menu bar.
- There's Custom Tab in Top Menu Bar where user can select only the Type they want to see.
- By clicking on the each indiviaul line of data, detailed information of each log can be seen.
- With the Delete Button, users can delele all existing logs.
For an example of Fullstack-Monitor
installed on a project see this GitHub Repo here: