diff options
| author | 2015-03-06 19:15:02 +0100 | |
|---|---|---|
| committer | 2015-03-06 19:23:52 +0100 | |
| commit | 0aa44e238db7a72f4fb8b347168ec76c3ce48ad5 (patch) | |
| tree | dba02c60d0a663708265089394c634a655417f9d /src/common/logging/backend.h | |
| parent | Merge pull request #630 from archshift/swap (diff) | |
| download | yuzu-0aa44e238db7a72f4fb8b347168ec76c3ce48ad5.tar.gz yuzu-0aa44e238db7a72f4fb8b347168ec76c3ce48ad5.tar.xz yuzu-0aa44e238db7a72f4fb8b347168ec76c3ce48ad5.zip | |
Logging: check for filter before sending to the queue, to skip all heavy formatting on the other thread.
Diffstat (limited to 'src/common/logging/backend.h')
| -rw-r--r-- | src/common/logging/backend.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/logging/backend.h b/src/common/logging/backend.h index 1c44c929e..3114f864c 100644 --- a/src/common/logging/backend.h +++ b/src/common/logging/backend.h | |||
| @@ -10,6 +10,7 @@ | |||
| 10 | 10 | ||
| 11 | #include "common/concurrent_ring_buffer.h" | 11 | #include "common/concurrent_ring_buffer.h" |
| 12 | 12 | ||
| 13 | #include "common/logging/filter.h" | ||
| 13 | #include "common/logging/log.h" | 14 | #include "common/logging/log.h" |
| 14 | 15 | ||
| 15 | namespace Log { | 16 | namespace Log { |
| @@ -131,4 +132,6 @@ Entry CreateEntry(Class log_class, Level log_level, | |||
| 131 | /// Initializes the default Logger. | 132 | /// Initializes the default Logger. |
| 132 | std::shared_ptr<Logger> InitGlobalLogger(); | 133 | std::shared_ptr<Logger> InitGlobalLogger(); |
| 133 | 134 | ||
| 135 | void SetFilter(Filter* filter); | ||
| 136 | |||
| 134 | } | 137 | } |