node-linux icon indicating copy to clipboard operation
node-linux copied to clipboard

Console.log redirection

Open XBTCorg opened this issue 10 years ago • 3 comments

Console.log redirection not working for me at all. Tested with systemv & systemd on different Debian instances. Node v.0.12

XBTCorg avatar May 13 '15 20:05 XBTCorg

No logging output for me either, running on Raspbian (Debian) with systemv. Node v0.12.6

emdarcher avatar Aug 17 '15 18:08 emdarcher

It may have to do with this part of wrapper.js : https://github.com/coreybutler/node-linux/blob/master/lib/wrapper.js#L62-L73 When I ran a script (very similar to the example ) that used node-linux to install a package as a service, node gave this deprecation warning about .write:

.write(string, encoding, offset, length) is deprecated. Use write(string[, offset[, length]][, encoding]) instead.

emdarcher avatar Aug 17 '15 18:08 emdarcher

I'm pretty sure @emdarcher is on the money with the deprecation. I am not working with 0.12.x and node-linux at the moment, but I suspect this is a pretty simple fix. I would accept a PR on this.

coreybutler avatar Aug 24 '15 14:08 coreybutler