0

mongodb load js

load(myjs.js)

in myjs.js have the print("this is a test log");

how can I print this log into log.txt file?

Allen
  • 1
  • Does this answers your question ? https://stackoverflow.com/questions/32719923/redirecting-stdout-to-file-nodejs – Peterrabbit Mar 29 '22 at 08:02
  • Does this answer your question? [Redirecting stdout to file nodejs](https://stackoverflow.com/questions/32719923/redirecting-stdout-to-file-nodejs) – Peterrabbit Mar 29 '22 at 08:17

0 Answers0