aboutsummaryrefslogtreecommitdiffstats
path: root/CommonLibs/Logger.h
diff options
context:
space:
mode:
authorAlexander Chemeris <Alexander.Chemeris@gmail.com>2015-05-24 13:20:44 -0400
committerAlexander Chemeris <Alexander.Chemeris@gmail.com>2015-05-24 13:20:44 -0400
commit5721920a08eb7414799f06bfbbfc3cc8ba6cb359 (patch)
tree3873bc4ba39eca2ed2310e26a22b558e70872d69 /CommonLibs/Logger.h
parent194a9b19828f0779f7eca05ce75e2b61a776da21 (diff)
Common: Introduce a global variable to disable syslog logging.
When we enable DEBUG logging level, syslog gets Gb's of data and can completely exhaust the file system free space. Now we can just enable it. This is not to say that logging to syslog it just not very useful in general.
Diffstat (limited to 'CommonLibs/Logger.h')
-rw-r--r--CommonLibs/Logger.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/CommonLibs/Logger.h b/CommonLibs/Logger.h
index 58dfa22..9667f36 100644
--- a/CommonLibs/Logger.h
+++ b/CommonLibs/Logger.h
@@ -116,7 +116,8 @@ class Log {
std::ostringstream& get();
};
-extern bool gLogToConsole; // Pat added for easy debugging.
+extern bool gLogToConsole; // Output log messages to stdout
+extern bool gLogToSyslog; // Output log messages to syslog