aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/logging.hh
diff options
context:
space:
mode:
authorBen Burdette <bburdette@gmail.com>2020-06-29 10:20:51 -0600
committerBen Burdette <bburdette@gmail.com>2020-06-29 10:20:51 -0600
commit8f81fae116b449ef17561c3574d01574544c798c (patch)
treee775375a0407c1cf16b727b2928335a392aab679 /src/libutil/logging.hh
parentef24a0835d16baf1aa3f19ffa7ba7af54e6e63e6 (diff)
showTrace flag in loggers
Diffstat (limited to 'src/libutil/logging.hh')
-rw-r--r--src/libutil/logging.hh6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libutil/logging.hh b/src/libutil/logging.hh
index b1583eced..3c164c670 100644
--- a/src/libutil/logging.hh
+++ b/src/libutil/logging.hh
@@ -75,6 +75,9 @@ public:
logEI(ei);
}
+ virtual bool getShowTrace() const = 0;
+ virtual void setShowTrace(bool showTrace) = 0;
+
virtual void warn(const std::string & msg);
virtual void startActivity(ActivityId act, Verbosity lvl, ActivityType type,
@@ -146,7 +149,8 @@ struct PushActivity
extern Logger * logger;
-Logger * makeSimpleLogger(bool printBuildLogs = true);
+Logger * makeSimpleLogger(bool printBuildLogs, bool showTrace);
+// Logger * makeSimpleLogger(bool printBuildLogs = true, bool showTrace);
Logger * makeJSONLogger(Logger & prevLogger);