Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Roberts <vieuxtech@gmail.com>2020-03-13 19:45:39 +0300
committerMyles Borins <mylesborins@google.com>2020-03-24 09:55:08 +0300
commitb5b7bf5ea4938b94af0a8497bdbe5b8b44c61a2c (patch)
tree56a62649745210a58c17ee56f2745c86d3afd535 /src/node_options.h
parent5adaf1092a275c112d92a01182bad64c1e4c9e46 (diff)
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 a4174767c9b..66635122cbb 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;