Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 1.2 KB

README.md

File metadata and controls

39 lines (27 loc) · 1.2 KB

Morgan Logger with Socket.IO

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.

Features

  • 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.

Prerequisites

  • Node.js and npm installed.

Installation

  1. Clone this repository.
  2. Install the required dependencies using npm install.

Usage

  1. Start the server on the machine where logs are generated:

    npm run server
  2. Run the client on the remote machine where you want to monitor logs:

    npm run client
  3. You will now see log messages from the server appearing on the client machine in real-time.

Customization

  • 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.

License

This project is licensed under the MIT License. See the LICENSE file for details.