console.trace("Here I am!")
- prints stack trace in current position of code. Is it possible to start writing stack trace from the beginning of script (or certain position) till the end of script to external log file like (/tmp/myTraceFile_${process.pid}
)?
Asked
Active
Viewed 20 times
0

Anatolii Motornyi
- 41
- 4
-
https://stackoverflow.com/a/33593443/1519836 answers your question – GottZ Sep 25 '20 at 21:33
-
Does this answer your question? [How to print a stack trace in Node.js?](https://stackoverflow.com/questions/2923858/how-to-print-a-stack-trace-in-node-js) – ajvg94 Sep 25 '20 at 21:46
-
I need permanent log writing, not by manual calling – Anatolii Motornyi Sep 28 '20 at 06:53