Skip to content

An HTTP request logger built for express.js devs.

Notifications You must be signed in to change notification settings

iamnasirudeen/argus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

argus

An HTTP request logger built for express.js devs.

Introduction

Argus is a request logger and viewer for ExpressJS. It allows developers log and view http requests made to their web application.

Argus

Installation

Run the following command to install Horus on your project:

npm install argus-staging-server

Initiate Argus

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.

Serve dashboard

Argus

Argus

NOTE
Visit /{baseURL} !.e /logs on the port configured or the application port (depending on your config) to view the dashboard

About

An HTTP request logger built for express.js devs.

Resources

Stars

Watchers

Forks

Packages

No packages published