diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2014-01-30 00:12:24 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2014-01-30 00:15:05 +0900 |
| commit | 30e4077440e93a9e78cf55a3a1a4e295ae5e9a72 (patch) | |
| tree | 46eb7a9dd27c77921ce8e1fa071d1398c13f0fb0 /src/LogFactory.h | |
| parent | f2fa24b418f407bd94074b0988e3e5307e781bff (diff) | |
Add --enable-color option to enable/disable terminal color output
Diffstat (limited to 'src/LogFactory.h')
| -rw-r--r-- | src/LogFactory.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/LogFactory.h b/src/LogFactory.h index 4c977561..662cc583 100644 --- a/src/LogFactory.h +++ b/src/LogFactory.h @@ -51,6 +51,7 @@ private: static bool consoleOutput_; static Logger::LEVEL logLevel_; static Logger::LEVEL consoleLogLevel_; + static bool colorOutput_; static void openLogger(const std::shared_ptr<Logger>& logger); @@ -102,6 +103,12 @@ public: static void setConsoleLogLevel(const std::string& level); /** + * Enable color output if |enabled| is true. By default, color + * output is enabled for terminal. + */ + static void setColorOutput(bool enabled); + + /** * Releases used resources */ static void release(); |
