diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2014-12-14 02:09:56 -0200 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2014-12-14 02:10:41 -0200 |
commit | ac87c3b0d07427d27cc6afa3c9a736721e041e54 (patch) | |
tree | b4f98b08605b4c82f8084e7fb7c84798612ba1e9 /src/common/logging/text_formatter.h | |
parent | 9ce11b2d925b08352f9349ecbf228431581331f4 (diff) |
Restore the original console color after logging a message.
Fixes #277
Diffstat (limited to 'src/common/logging/text_formatter.h')
-rw-r--r-- | src/common/logging/text_formatter.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/logging/text_formatter.h b/src/common/logging/text_formatter.h index d7e298e28b..1f73ca44a0 100644 --- a/src/common/logging/text_formatter.h +++ b/src/common/logging/text_formatter.h @@ -29,6 +29,8 @@ const char* TrimSourcePath(const char* path, const char* root = "src"); void FormatLogMessage(const Entry& entry, char* out_text, size_t text_len); /// Formats and prints a log entry to stderr. void PrintMessage(const Entry& entry); +/// Prints the same message as `PrintMessage`, but colored acoording to the severity level. +void PrintColoredMessage(const Entry& entry); /** * Logging loop that repeatedly reads messages from the provided logger and prints them to the |