coreybutler / node-windows

Windows support for Node.JS scripts (daemons, eventlog, UAC, etc).
Other
2.8k stars 356 forks source link

how we can write node js server logs into a file if using node-windows #168

Closed anandgupta193 closed 7 years ago

anandgupta193 commented 7 years ago

@coreybutler id there any provision that we can write node server logs into a file if we ran our node server as windows service using node-windows?

coreybutler commented 7 years ago

There's nothing stopping you from writing your own log files to disk, if that's what you're asking. Just make sure you are storing the log file in a directory the app has permissions to write to.

If you want to write to the Windows event logs, node-windows supports that.