logwatcher

A simple server to view log files through websockets.

Usage no npm install needed!

<script type="module">
  import logwatcher from 'https://cdn.skypack.dev/logwatcher';
</script>

README

LogWatcher

This is a simple web application I have written to watch log files from a browser. The primary motivation for its creation is for me to learn how to use WebSockets in NodeJS while creating something useful for myself. It uses WebSockets ws by einaros.

Installation

npm install -g logwatcher

Usage

Create a .logwatchrc file in your home directory. Then just run:

logwatch

Sample .logwatchrc file:

{
  "logs": {
    "Name": "/home/user/path/to/file.log"
  }
}

The name is used for the button display in the browser.