express-control-room
Version:
Express Control Room is a middleware package for the Express.js framework designed to provide a centralized control interface for managing and monitoring various aspects of your Express application and the server. It offers features such as real-time logg
18 lines (14 loc) • 363 B
JavaScript
const express = require('express');
const { ControlRoom, Log } = require('..');
const app = express();
const port = 3000;
// Define a route
app.get('/', (req, res) => {
res.send('Hello, World!');
});
Log.debug('something')
app.use(ControlRoom);
// Start the server
app.listen(port, () => {
console.log(`Server is running on http://localhost:${port}`);
});