Skip to content

A simple NodeJS app that watches log files for changes and displays in the browser via WebSockets.

Notifications You must be signed in to change notification settings

onlywei/logwatcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

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

Port of 4000 is default. The name is used for the button display in the browser.

About

A simple NodeJS app that watches log files for changes and displays in the browser via WebSockets.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published