1.0.6 • Published 4 years ago

@rahul171/server-logs v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Server logs

View Node.js server logs in browser.

Install

npm install @rahul171/server-logs

Usage

Start the server

const serverLogs = require('@rahul171/server-logs');
serverLogs.configure();

Log the message

serverLogs.log('message');

View logs in browser

Open localhost:5000 to see the logs.

You can also see the logs in browser console.

Samples

Sample files can be found in /samples directory.

Notes

  • The server runs on port 5000 by default.
  • Once the server has started, the log will send a message to all connected clients using web sockets.
  • A new client will get the last emitted message upon connecting.
1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago