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
|
@ -10,6 +10,7 @@
|
|||
|
||||
#include "common/concurrent_ring_buffer.h"
|
||||
|
||||
#include "common/logging/filter.h"
|
||||
#include "common/logging/log.h"
|
||||
|
||||
namespace Log {
|
||||
|
@ -131,4 +132,6 @@ Entry CreateEntry(Class log_class, Level log_level,
|
|||
/// Initializes the default Logger.
|
||||
std::shared_ptr<Logger> InitGlobalLogger();
|
||||
|
||||
void SetFilter(Filter* filter);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue