Logging: check for filter before sending to the queue, to skip all heavy formatting on the other thread.
This commit is contained in:
parent
53ba65db43
commit
0aa44e238d
7 changed files with 21 additions and 9 deletions
|
@ -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);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue