summaryrefslogtreecommitdiff
path: root/src/node_options.h
diff options
context:
space:
mode:
authorSam Roberts <vieuxtech@gmail.com>2020-03-13 09:45:39 -0700
committerSam Roberts <vieuxtech@gmail.com>2020-03-17 08:42:41 -0700
commit8cbbc70fbc835fa82c9cfffdd89a5ee323533398 (patch)
tree73986fcc9282c9f06a8eefeec2ce974de7ae92e9 /src/node_options.h
parent9b20b5db7b829dff0bcf0383c898c7fc85924369 (diff)
downloadnode-new-8cbbc70fbc835fa82c9cfffdd89a5ee323533398.tar.gz
src,cli: support compact (one-line) JSON reports
Multi-line JSON is more human readable, but harder for log aggregators to consume, they usually require a log message per line, particularly for JSON. Compact output will be consumable by aggregators such as EFK (Elastic Search-Fluentd-Kibana), LogDNA, DataDog, etc. PR-URL: https://github.com/nodejs/node/pull/32254 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'src/node_options.h')
-rw-r--r--src/node_options.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node_options.h b/src/node_options.h
index a4174767c9..66635122cb 100644
--- a/src/node_options.h
+++ b/src/node_options.h
@@ -187,6 +187,7 @@ class PerIsolateOptions : public Options {
bool report_uncaught_exception = false;
bool report_on_signal = false;
bool report_on_fatalerror = false;
+ bool report_compact = false;
std::string report_signal = "SIGUSR2";
std::string report_filename;
std::string report_directory;