node.js - node-webkit tail a file output in application console -
pardon me if totally wrong in concepts novice of - node js, node-webkit, javascript. trying learn of them :)
i developing simple desktop app using node-webkit want read system log , write in application console. using tailfd node module , there no error in console. here html
<!doctype html> <html> <head> <title>tailing system log</title> </head> <body> <script> var tail = require('tailfd').tail, watcher = tail('/var/log/system.log',function(line,tailinfo) { //default line listener. optional. console.log('line of data> ',line); }); </script> <h1>tailing sys log!</h1> </body> </html>
the tail output not showing in app console. can point me if missing basic stuff? appreciated.
Comments
Post a Comment