Logging: check for filter before sending to the queue, to skip all heavy formatting on the other thread.

This commit is contained in:
Emmanuel Gil Peyrot 2015-03-06 19:15:02 +01:00
parent 53ba65db43
commit 0aa44e238d
7 changed files with 21 additions and 9 deletions

View file

@ -11,7 +11,6 @@ namespace Log {
class Logger;
struct Entry;
class Filter;
/**
* Attempts to trim an arbitrary prefix from `path`, leaving only the part starting at `root`. It's
@ -36,6 +35,6 @@ void PrintColoredMessage(const Entry& entry);
* Logging loop that repeatedly reads messages from the provided logger and prints them to the
* console. It is the baseline barebones log outputter.
*/
void TextLoggingLoop(std::shared_ptr<Logger> logger, const Filter* filter);
void TextLoggingLoop(std::shared_ptr<Logger> logger);
}