I remove the node.js log file like this.
cd /var/log
rm node.log
And now I create a log file named "node.log", but the file is not written by node.js. How should I do? Thanks!!
Node will continue to write to the old (unlinked, but not yet deleted, because it is still open) log file.
Easiest way would be to restart node.