comlog-system-monitor-filetime

1.1.0 • Public • Published

Watch a file for changes

Installation via

$ npm install -s comlog-system-monitor-filetime

Usage

var Service = require('comlog-system-monitor-filetime');
 
var csmf = new Service({
    path: "/var/log/messages", // Or function
    interval: 60000, // 1 Minute
    timeout: 30000 // 0.5 Minute
});
 
csmf.on('error', function(err) {
    console.error(err);
});
 
// bind event
csmf.on('down', function() {
    console.info('Log timestamp overflow');
});
 
// bind event
csmf.on('up', function() {
    console.info('Log timestamp is ok');
});

Readme

Keywords

Package Sidebar

Install

npm i comlog-system-monitor-filetime

Weekly Downloads

3

Version

1.1.0

License

MIT

Unpacked Size

3.48 kB

Total Files

3

Last publish

Collaborators

  • comlog.gmbh