| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 8195c81 commit 4308d95
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -954,6 +954,9 @@ changes: | |||
| 954 | 954 | ||
| 955 | 955 | Name of the file to which the report will be written. | |
| 956 | 956 | ||
| 957 | + If the filename is set to `'stdout'` or `'stderr'`, the report is written to | ||
| 958 | + the stdout or stderr of the process respectively. | ||
| 959 | + | ||
| 957 | 960 | ### `--report-on-fatalerror` | |
| 958 | 961 | ||
| 959 | 962 | <!-- YAML | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2813,6 +2813,9 @@ Filename where the report is written. If set to the empty string, the output | |||
| 2813 | 2813 | filename will be comprised of a timestamp, PID, and sequence number. The default | |
| 2814 | 2814 | value is the empty string. | |
| 2815 | 2815 | ||
| 2816 | + If the value of `process.report.filename` is set to `'stdout'` or `'stderr'`, | ||
| 2817 | + the report is written to the stdout or stderr of the process respectively. | ||
| 2818 | + | ||
| 2816 | 2819 | ```mjs | |
| 2817 | 2820 | import { report } from 'node:process'; | |
| 2818 | 2821 | ||
@@ -3007,6 +3010,9 @@ Writes a diagnostic report to a file. If `filename` is not provided, the default | |||
| 3007 | 3010 | filename includes the date, time, PID, and a sequence number. The report's | |
| 3008 | 3011 | JavaScript stack trace is taken from `err`, if present. | |
| 3009 | 3012 | ||
| 3013 | + If the value of `filename` is set to `'stdout'` or `'stderr'`, the report is | ||
| 3014 | + written to the stdout or stderr of the process respectively. | ||
| 3015 | + | ||
| 3010 | 3016 | ```mjs | |
| 3011 | 3017 | import { report } from 'node:process'; | |
| 3012 | 3018 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments