An HTTP request logger built for express.js devs.
Argus is a request logger and viewer for ExpressJS. It allows developers log and view http requests made to their web application.
Run the following command to install Horus on your project:
npm install argus-staging-server
const express = require("express");
const app = express();
const Argus = require("argus-staging-server");
const http = require("http");
const server = http.Server(app);
server.listen(5000);
Argus(app, {
database: "mongodb://localhost/horus",
server,
baseURL: "/logs",
});
// You can make argus listen on another port entirely
Argus(app, {
database: "mongodb://localhost/horus",
port: 7000,
baseURL: "/logs",
})
app.get("/", (req, res) => res.send("Hello world"));
module.exports = app;
NOTE
Only Mongodb Database is support for now.
NOTE
Visit/{baseURL}
!.e /logs on the port configured or the application port (depending on your config) to view the dashboard