Effortlessly integrate Morgan HTTP logger with Socket.IO for real-time log monitoring across machines. Transmit logs instantly, customize formats, and centralize logging management. Ideal for distributed systems and monitoring applications.
- Real-time log monitoring across multiple machines.
- Seamless integration of Morgan logger with Socket.IO.
- Customizable log formats to suit your needs.
- Easy setup and configuration.
- Node.js and npm installed.
- Clone this repository.
- Install the required dependencies using
npm install
.
-
Start the server on the machine where logs are generated:
npm run server
-
Run the client on the remote machine where you want to monitor logs:
npm run client
-
You will now see log messages from the server appearing on the client machine in real-time.
- Adjust the log formats in the server.js file to tailor the log messages to your needs.
- Modify the server and client configurations (e.g., IP addresses and ports) to match your setup.
This project is licensed under the MIT License. See the LICENSE file for details.