**Logger Mon** is a lightweight, zero-dependency JavaScript middleware designed to capture and stream client-side logs in real time to a centralized server using secure WebSocket. Built for performance-focused teams, Logger Mon not only enriches each log
npm install logger-monbash
npm install logger-mon
`
---
βοΈ Prerequisites
* A running Node.js project
* A .env file with your API key and backend WebSocket URL
* An account at our Website
---
π Getting Your API Key
1. Go to Website
2. Sign up or log in.
3. Navigate to the Projects section.
4. Click Create Project and copy your API Key .
---
π Usage Example
$3
`js
// app.js
require('dotenv').config();
const express = require('express');
const logger = require('logger-mon');
const app = express();
app.use(
logger({
apiKey: process.env.LOGGER_API_KEY
})
);
app.get('/', (req, res) => res.send('Logger-Mon is active'));
app.listen(3000, () => console.log('Server running on port 3000'));
`
---
π‘ Log Transmission & Insights
Every log is tagged with its API key and workspace context before being securely streamed to the Logger-Mon backend . Once received:
* Logs are passed to Logger-Mon backend and stored against the corresponding workspace.
* They are parsed and analyzed in real-time.
* AI/ML models perform anomaly detection.
* GROQ-based processing generates powerful insights.
* All insights and logs are viewable on your projectβs dashboard at https://logger-mon.vercel.app, offering advanced filters, charts, and exploration tools.
---
πΌοΈ Dashboard & Analysis Screenshots
Below are example screenshots from the Logger-Mon dashboard:
> Example:
>
> !Dashboard Overview
>
> !Log Stream View`