diff options
author | Alexander Chemeris <Alexander.Chemeris@gmail.com> | 2015-05-24 13:20:44 -0400 |
---|---|---|
committer | Alexander Chemeris <Alexander.Chemeris@gmail.com> | 2015-05-24 13:20:44 -0400 |
commit | 5721920a08eb7414799f06bfbbfc3cc8ba6cb359 (patch) | |
tree | 3873bc4ba39eca2ed2310e26a22b558e70872d69 /CommonLibs/Logger.h | |
parent | 194a9b19828f0779f7eca05ce75e2b61a776da21 (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.h | 3 |
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 |